Live data from Hacker News

Recursive Drawing

recursivedrawing.com

11–20 of 86 posts

Re: Recursive Drawing

#11
This is the new best thing ever.

I am probably going to make strange trees until I fall asleep on my keyboard. I hate waking up with keys stuck to my face, but the trees will be there to comfort me in the morning.

Re: Recursive Drawing

#13
Textual instructions (if you don't want to watch the demo video):

The left column is the shapes library. The center area is the canvas/workspace. The right area is an outline view of the shapes in the canvas.

To add a shape to the canvas, drag your mouse from the shape in the shape library to the workspace.

To move a shape, drag inside it, when the whole shape is highlighted red.

To resize and rotate a shape, drag the edge of it, when it is outlined red.

To delete a shape on the canvas, right-click it and choose Delete Shape. (You currently cannot delete shapes directly from the outline, nor can you delete shapes from the shape library.)

To resize a shape non-uniformly or add skew, hold shift while dragging its outline. You can use this to make line segments and rhombuses, among other things.

Click the + button in the left column to start editing a new shape.

Remember that you can add any shape to the canvas by dragging it from the shape library. This also applies to shapes you create yourself.

Click on any shape in the shape library (except for the starting circle and square) to edit it in the canvas.

You can see the thumbnail of what's in the canvas in the current shape in the shape library. You can also see the shapes your shape is composed of in the outline. Everything is updated live.

To pan across the canvas, drag outside of any shape, in the white area. To zoom into or out from the canvas, scroll with the mouse wheel while pointing inside the canvas.

You can drag even the shape you are currently editing from the shape library into the canvas. That is what makes this recursive drawing rather than merely nested drawing. You will see the current shape repeated relative to itself. (You might call the shape inside itself a "recursive shape instance".)

You can move, rotate, and resize a recursive shape instance to change its repetition pattern. For instance, if you resize the recursive shape instance to be smaller, you will see a line of recursive shapes shrinking forever. If you edit one of the repetitions of a shape, it will edit the whole pattern.

You can go back and edit a sub-shape, and every shape including that shape will update live.

If you don't know what to draw, try drawing one of these: any kind of fractal tree (https://www.google.com/search?q=fractal+tree&tbm=isch&#3...), Koch snowflake (http://en.wikipedia.org/wiki/Koch_snowflake), Sierpinski triangle (http://en.wikipedia.org/wiki/Sierpinski_triangle), Sierpinski carpet (http://en.wikipedia.org/wiki/Sierpinski_carpet), or any other fractal (http://en.wikipedia.org/wiki/List_of_fractals).

Re: Recursive Drawing

#15
post #9

Old trick. Go search for [postscript snowflake] sometime. Great fun for drawing psychedelic images and/or crashing network printers. (It turns out that .ps is actually an archaic programming language and not just a page description language.)

Or even better:

http://tog.acm.org/resources/RTNews/html/rtnv6n2.html#art11

Copy the postscript into a file and upload to:

http://www.ps2pdf.com/convert.htm

Re: Recursive Drawing

#16

Can't seem to figure out how to draw Sierpinski's triangle. The hello world of fractals.

Draw a triangle and put 4 shrunk copies of itself in the triangle (center one flipped)?

http://imgur.com/m0Okt see components on rhs.

Edit: Oh sorry, was confused about which one Sierpinski's was. Can fix it by omitting middle triangle: http://imgur.com/MVmPh

Re: Recursive Drawing

#17
post #6

This is non-responsive for me at the moment, how does this compare to http://www.contextfreeart.org/ ? Is it a visual interface to define the rule system, rather than the programming language approach? If so does it escape the same traps that other visual languages fall into?

I work with the original author of CFDG, who described this exact idea to me just last week. My jaw about hit the floor when I saw this. Though, it's possible that he knows the author of this.

Re: Recursive Drawing

#18
post #9

Old trick. Go search for [postscript snowflake] sometime. Great fun for drawing psychedelic images and/or crashing network printers. (It turns out that .ps is actually an archaic programming language and not just a page description language.)

PS is basically Forth

Re: Recursive Drawing

#19
This is really cool, and playing with it made me smile. I wish it had two things:

1) A way to delete objects that you placed by accident. (perhaps there is a way to do this which I couldn't find). I keep going back a page and losing everything because I press the delete button.

2) A way to label layers, with generated descriptions of what the layer is. i.e. Here is a new layer called a "heart". A heart is two circles and one square. A "valentines day picture" is two hearts. Likewise, a "tree" is a rectangle, with another a rotated "tree" touching one end of the rectangle. I can imagine this being a great way to explain programming concepts in a visual way, and giving people the vocabulary to talk about them.

As for my artistic abilities... http://cl.ly/251m2k0z1Z0z142r3S42

Re: Recursive Drawing

#20

This is really cool, and playing with it made me smile. I wish it had two things: 1) A way to delete objects that you placed by accident. (perhaps there is a way to do this which I couldn't find). I keep going back a page and losing everything because I press the delete button. 2) A way to label layers, with generated descriptions of what the layer is. i.e. Here is a new layer called a "heart". A heart is two circles…

Right clicking on a shape brings up a Delete Shape option.
Post reply on HN