I tried
(define l (list 'stroke-gradient 7 0 0 0 (* (/ 450.0 1000) image-height) 90 100))
and i tried this as well since stroke-gradient is a variable that holds value "2Gold" and took out the math to see if it passes.
(define l (list stroke-gradient 7 0 0 0 450 90 100))
but it still gave me the same error.
here's the definition for the color field in this function:
The stroke color. This can also be a list or tuple to use gradients or patterns. For a gradient stroke, use a list or tuple of the form (gradient_name, gradient_type, repeat, reverse, center_x, center_y, angle, width). For a patterned stroke, use the form (pattern_name, scale, interpolation_type).
I am using gradient so it expects a list of 8 items, i have a list of 8 items and it's still complaining about Error: ( : 1) Invalid type for argument 4 to python-layer-fx-stroke
It must be something so simple but i am just not seeing it.
I am thinking maybe i'll use tuple instead of list but i don't know how to construct tuples either.