I have got hooked to CFA in the last two days and have been trying to get a hang of the way this works. To test my skills I was trying a zig-zag figure and got stumped.
Fundamentally, when shapes are drawn is there a concept of a current position? e.g. if I draw a set of squares that span across the width of the canvas and then draw a CIRCLE it draws it at the "original point" rather than at the point where the squares have ended.
I would appreciate if someone could clarify for me:
1. What is the starting point for any set of shapes?
2. Is there a way I can position when using standard shapes like SQUARE, CIRCLE, TRIANGLE?
My code (which does not work for zig-zag line is)
Code: Select all
startshape STRIPES
rule STRIPES {
dash{}
slash{r 181}
}
rule dash {
100 * {x -1} SQUARE{}
}
rule backslash {
100 * {x -1} SQUARE{hue 0 sat 1 b 1}
}
rule slash {
100 * {x 1} SQUARE{hue 100 sat 1 b 1}
backslash{ r 181}
}
RR