Thread: The Scribbler
View Single Post
Old 01-27-2004, 12:30 PM   #4
hot_pastrami
I am meaty
 
Join Date: Dec 2001
Location: Salt Lake City, UT
Posts: 1,119
Quote:
Originally posted by Kitsune
hot_pastrami -- that is a damn neat tool. I wish I understood the algorhythm it uses to select what paths it takes, as the lines it adds truly add more substance to what you draw. Very cool.
Well, the algorithm seems pretty simple, really... the results just look complex. Each "scribbler" point starts at a random pint on the path you defined with your drawing. It then calculates all of the possible points it can jump to on the defined path which are within N pixels (where N is the adjustable "scribbliness" setting), and randomly selects one. It then draws a line between the current point and the randomly selected point using the settings currently defined for the line (thickness, color, transparency). It then repeats that process from this new point. Occasionally, each scribbler is moved to a new random point on the path, so that otherwise unreachable "islands" won't be left unscribbled.

Pretty simple, but it creates a cool effect.
__________________
Hot Pastrami!
hot_pastrami is offline   Reply With Quote