Hi all,
Is it possible to set a gradient of a graphic in livecode instead of setting it to a solid Color?
Thanks!
Set the gradient of a graphic (Solved)
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Set the gradient of a graphic (Solved)
Last edited by EddieLee on Wed Sep 02, 2020 12:30 pm, edited 1 time in total.
Eddie 

Re: Set the gradient of a graphic
Yes. You need to specify the properties using an array, "fillGradient" or "strokeGradient" in the Dictionary explains what each array element relates to.
A good way to understand this would be to set the fillGradient of your graphic using the property inspector and then examine the array by using a simple script in the multi-line pane of the message box.
e.g.
Paul
A good way to understand this would be to set the fillGradient of your graphic using the property inspector and then examine the array by using a simple script in the multi-line pane of the message box.
e.g.
Code: Select all
put the fillGradient of graphic 1 into tGradA
combine tGradA by return and comma
put tGradA