Hi,
I've got a sketch here wich is supposed to draw triangles like a 'hexagonal-concentric-snail'
http://studio.sketchpad.cc/sp/pad/view/4nB53waVBp/latest
(I give you the sketchpad version beacause the code don't run in Processing plus i need it in PJS)
You can see that all the colored triangle are placed manually, after the last position
I'm trying to make this sketch build more dynamicaly, because it's supposed to be connected with external data, but i can't find a way to have something like
Thx
I've got a sketch here wich is supposed to draw triangles like a 'hexagonal-concentric-snail'
http://studio.sketchpad.cc/sp/pad/view/4nB53waVBp/latest
(I give you the sketchpad version beacause the code don't run in Processing plus i need it in PJS)
You can see that all the colored triangle are placed manually, after the last position
I'm trying to make this sketch build more dynamicaly, because it's supposed to be connected with external data, but i can't find a way to have something like
- for (int i=0;i<TriangleNumber; i++)
- {
- xPos = "magic maths goes here" *w;
- xPos = "magic maths goes here" *h/2;
- }
Thx
1