We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexDiscussionExhibition › StringArt - My First Processing Program
Page Index Toggle Pages: 1
StringArt - My First Processing Program (Read 2864 times)
StringArt - My First Processing Program
May 31st, 2010, 3:08pm
 
This is just a simple little program I wrote as my first foray into Processing. The code is located at --> http://www.openprocessing.org/visuals/?visualID=10110

There are two major errors still to be worked out:

1. Erasure of the last line in the buffer isn't quite working. The image of the erased line is greyed out, but not completely erased.

2. When the line being erased intersects with another, more current, line it ends up erasing a portion of that line.
Re: StringArt - My First Processing Program
Reply #1 - May 31st, 2010, 7:13pm
 
It's Qix! Wink

Probably the only reliable way around the two issues you point out would be to do a full clear-and-redraw of the screen each frame with a rotating buffer of line endpoints.  That's the sort of model that Processing seems to be based on.

Nice sketch, though.  Brings back those 8-bit memories.
Re: StringArt - My First Processing Program
Reply #2 - May 31st, 2010, 9:43pm
 
Nice program. Keep it up.
Re: StringArt - My First Processing Program
Reply #3 - Jun 1st, 2010, 1:19am
 
like smitty said, the best way would be to draw all of the lines every frame.so you dont need to care how to erase them again.
In your case you just overdraw them with another white line.
If you want to keep it that way you can get better results. if you change the strokeweight.
all you need to do is.
add

strokeWeight(4);
before your second white line.

and add another  strokeWeight(1); at the beginning of linedraw()
to reset strokeweight for your other lines.


Page Index Toggle Pages: 1