255
edits
Kei kitamura (talk | contribs) |
Kei kitamura (talk | contribs) |
||
Line 25: | Line 25: | ||
2. [https://codepen.io/kayk5654/pen/mOVQgo turtle walk with data]<br> | 2. [https://codepen.io/kayk5654/pen/mOVQgo turtle walk with data]<br> | ||
The selected background image is converted to the command which defines the direction of turtle walk.<br> | The selected background image is converted to the command which defines the direction of turtle walk.<br> | ||
Each pixels of the image are sampled, and the strongest one of the R, G or B is assigned as a command.<br> | |||
Thus, the direction of the curve reflects the dominant color factor<br> | |||
To test locally, you can download this project;<br> | To test locally, you can download this project;<br> | ||
[[Media:Turtle_homework_02_modified.zip]]<br> | [[Media:Turtle_homework_02_modified.zip]]<br> |
edits