evil-mad / WaterColorBlocks

Code examples for driving the WaterColorBot from within block-based programming languages like Scratch and Snap
MIT License
13 stars 3 forks source link

Working examples #1

Open techninja opened 9 years ago

techninja commented 9 years ago

On a whim I decided to go ahead and modify Koch's Snowflake into something that we could output direct onto the WaterColorBot... and it worked!

photo on 11-8-14 at 3 49 pm Drawn on WaterColorBot via RoboPaint 0.9.0b, through Scratch v2 offline with a 1mm Pigma archival brush on plain copy paper, with the iterations set at 6 (you can set almost any number of iterations for the fractal, though above 5 it gets quite slow).

File is here: http://robopaint.tn42.com/Kochs_Snowflake.sb2 modified from this project here: http://scratch.mit.edu/projects/855922/

oskay commented 9 years ago

Would you please add this wonderful example to the repository?

techninja commented 9 years ago

Do I have write access? Hrmm.

techninja commented 9 years ago

Ok, so I do! Um.. this example does some VERY wonky things with iteration 1. I'll try to debug it so it gives us a proper triangle, but we'll see how that goes. I can't really vouch for the source :P

oskay commented 9 years ago

I'll take a look when I get a chance, too. This coming week I should have some time to work on these examples.

techninja commented 9 years ago

I've pushed three new files to the scratch examples Fractals folder. This includes an updated version of the top one, and two more fun ones, pictured here.

Generational Fractal Tree: img_2392

Sierpinski triangle (6th gen): img_2390_crop

These all likely need some tuning. And likely want to use the "sleep" mode to preview the drawing, and then maybe a button to actually go draw with sleep mode off.