Loading...
Logo
Processing Forum
Hello,

I made a flexible Shape Drawer similar to the one in the tools section.

You can draw via mouse dragging (you can drag the mouse until the vertex is right and then release mouse button to store the vertex).

It comes with a grid and a display of your vertices pos and mouse pos so you can draw very precisely there.

You can end the current vertex by esc or undo with Backspace (undo is possible for all steps).

When you downloaded the sketch, you can even export (via hitting 'r') as Code via println.

http://www.openprocessing.org/sketch/60365

Greetings, Chrisir     

Replies(5)

Well done Chrisir! Any chance at making a multiple shape version?


Hello,

thank you!

That sounds like a neat idea.

You mean after doing some vertices, hit return and the shape is closed.

When you then continue with the mouse dragging a new shape is started and so forth.

When you hit 'r' finally, the shapes are exported via println one after another.

Right?

Thanks again,

Greetings, Chrisir 





Hi asimes,

I followed your cool suggestion and now it's a shape drawer for multiple shapes.
When one shape is done, hit return to start the next shape.
Press 'r' to export (when you dowloaded the sketch).

Thanks again!

Same link:

http://www.openprocessing.org/sketch/60365

Greetrings, Chrisir    
Yay O.o)b

If I could make one last suggestion, I was surprised when my old shape became transparent (on a grid), maybe old shapes can just become faded blue / a different color?


done and uploaded anew.