Page 1 of 1
Set the gradient of a graphic (Solved)
Posted: Tue Sep 01, 2020 12:22 am
by EddieLee
Hi all,
Is it possible to set a gradient of a graphic in livecode instead of setting it to a solid Color?
Thanks!
Re: Set the gradient of a graphic
Posted: Tue Sep 01, 2020 1:55 am
by PBH
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.
Code: Select all
put the fillGradient of graphic 1 into tGradA
combine tGradA by return and comma
put tGradA
Paul