Thursday, December 4th, 2008
CanvasTurtle
Eiten Suez, author of jMatter, has been up to some fun hacking recently. He just released CanvasTurtle a JavaScript and Canvas version of the old favourite TurtlePascal.
You can build snow flakes with code like this:
-
-
function side(size, level) {
-
if (level==0) {
-
fd(size);
-
return;
-
}
-
side(size/3, level-1);
-
lt(60);
-
side(size/3, level-1);
-
rt(120);
-
side(size/3, level-1);
-
lt(60);
-
side(size/3, level-1);
-
}
-
-
function snowflake(size, level) {
-
(3).times(function() {
-
side(size, level);
-
rt(120);
-
});
-
}
-
-
-
clean();
-
lt(30);
-
setPos(0,-100);
-
snowflake(250, 4);
-
Or a pretty garden like this.













Reminds me of the work by David Jones (drj11) on Curly Logo
Isn’t TurtlePascal just a copy of the original based on the Logo (Wikipedia). It’s what we used when I was in elementary school on Apple IIGS (or something like that). I’ve been wanting to make a tshirt based on it.
Oooh, Eiten branching out towards js? This is an exciting start…
Very interesting whats gonna happen next and how its gonna work out. Meanwhile, ill stand by pictures of tattoo designs and chill
This is interesting start of something new.
oldtimerock from printable tattoo designs