Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

This is so cool!

I started drawing without watching the video and didn't get it. Thank goodness I didn't give up there.

Recipe for fun:

Make a very thin rectangle by dragging in a square, and holding down shift to resize it. You can basically get a line.

Drag the line onto itself. You now have a spirograph.

I would think these are actually not that big or complicated to store. Each drawing is a list of {pointer, x, y, theta} for each. You might be able to "export to text" pretty easily. Want to see a friend's drawing (and incidentally, entire drawing toolbox)? Import the text.

Edit: came back to add that I left morphing (size, length/width ratios) out of the data structure. Incidentally, maybe morphing is why triangle isn't a primitive. What relation should you set up for a self referencing triangle? Maybe if you label the vertices.

You might be able to handle the self-referencing without any extra members in the text representation. You just have to handle a special case of child pointer == self.

I didn't read the code yet, but it's fun to think about.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: