problem wiith processingJS
in
Processing with Other Languages
•
1 year ago
does anybody know why this code runs perfectly in standard mode, but does not in JavaScript mode?
- PShape austria;
- void setup() {
- size(1000, 600);
- austria = loadShape("Map_of_Austria.svg");
- }
- void draw() {
- background(255);
- println(austria.getChildCount());
- for (int i=0; i<austria.getChildCount(); i++) {
- austria.getChild(i).disableStyle();
- fill(i*20);
- shape(austria.getChild(i), 0, 0);
- }
- }
1