Multiple strokes in randomized paths
Posted: Sun Mar 18, 2012 5:48 am
I am trying to make paths using multiple strokes with different stroke widths. This works on paths with predetermined parameters, but when doing so on random paths only the first stroke width is used.
The random curve on the left will use the first width on both strokes whereas the one on the left uses both widths as specified. Is there a solution to this?
Thanks!
Code: Select all
startshape Scene
shape Scene{
randSquiggle []
Squiggle [x 6]
}
path randSquiggle {
MOVETO(0,0)
// one parameter randomized
CURVETO(1..5,5,9,2)
STROKE(0.2) []
STROKE(0.02) [y 1 b 0.5]
}
path Squiggle {
MOVETO(0,0)
//no randomization
CURVETO(7,5,9,2)
STROKE(0.2) []
STROKE(0.02) [y 1 b 0.5]
}
Thanks!