How to vary colour of a rectangle with hex code in loop?
Hi all,
I created a rectangle in my sketchpad and tried to specify the colour as [target_colour].
I would like to vary the colour of the rectangle (square in the pic) with hex values. This is how my loop looks like (see below)
However, I am met with an error saying that [target_colour] is unknown (see blue bar) whenever I try to edit OS script (draw rect color="[target_colour]").
How should I go about this? Thank you in advance!
Comments
First thing to check is whether there are no typos. It happens quite often actually, that in the loop table you have leading or trailing whitespace. The syntax itself looks fine on the first glance.
Eduard