mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
This commit is contained in:
@@ -8,15 +8,13 @@
|
||||
* method turns it back on.
|
||||
*/
|
||||
|
||||
// @pjs preload must be used to preload media if the program is
|
||||
// running with Processing.js
|
||||
// The next line is needed if running in JavaScript Mode with Processing.js
|
||||
/* @pjs preload="bot1.svg"; */
|
||||
|
||||
PShape bot;
|
||||
|
||||
void setup() {
|
||||
size(640, 360);
|
||||
smooth();
|
||||
// The file "bot1.svg" must be in the data folder
|
||||
// of the current sketch to load successfully
|
||||
bot = loadShape("bot1.svg");
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
* two new PShape objects by extracting the data from two states.
|
||||
*/
|
||||
|
||||
// @pjs preload must be used to preload media if the program is
|
||||
// running with Processing.js
|
||||
// The next line is needed if running in JavaScript Mode with Processing.js
|
||||
/* @pjs preload="usa-wikipedia.svg"; */
|
||||
|
||||
PShape usa;
|
||||
|
||||
@@ -8,15 +8,13 @@
|
||||
* it'll work for SVGs created with anything else.
|
||||
*/
|
||||
|
||||
// @pjs preload must be used to preload media if the program is
|
||||
// running with Processing.js
|
||||
// The next line is needed if running in JavaScript Mode with Processing.js
|
||||
/* @pjs preload="bot1.svg"; */
|
||||
|
||||
PShape bot;
|
||||
|
||||
void setup() {
|
||||
size(640, 360);
|
||||
smooth();
|
||||
// The file "bot1.svg" must be in the data folder
|
||||
// of the current sketch to load successfully
|
||||
bot = loadShape("bot1.svg");
|
||||
|
||||
@@ -7,15 +7,13 @@
|
||||
* remain smooth at any size.
|
||||
*/
|
||||
|
||||
// @pjs preload must be used to preload media if the program is
|
||||
// running with Processing.js
|
||||
// The next line is needed if running in JavaScript Mode with Processing.js
|
||||
/* @pjs preload="bot1.svg"; */
|
||||
|
||||
PShape bot;
|
||||
|
||||
void setup() {
|
||||
size(640, 360);
|
||||
smooth();
|
||||
// The file "bot1.svg" must be in the data folder
|
||||
// of the current sketch to load successfully
|
||||
bot = loadShape("bot1.svg");
|
||||
|
||||
Reference in New Issue
Block a user