You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Syntax: set the gradientStops of <widget> to <pGradientStops>
117
+
Syntax: get the gradientStops of <widget>
118
+
119
+
Summary: The <gradientStops> property controls the offset and color of each division of the gradient.
120
+
121
+
pGradientStops: A list, one per line, of comma-delimited strings consisting of the offset of the gradient stop, followed by the color and alpha.
122
+
123
+
Example:
124
+
-- Create 10 equally spaced stops with random color values
125
+
local tGradientStops, tStop
126
+
repeat with x = 1 to 10
127
+
put x/10 & comma & random(255) & comma & random(255) & comma & random(255) & comma & random(255) into tStop
128
+
if tGradientStops is empty then
129
+
put tStop into tGradientStops
130
+
else
131
+
put return & tStop after tGradientStops
132
+
end if
133
+
end repeat
134
+
set the gradientStops of widget "Gradient Ramp Editor" to tGradientStops
135
+
136
+
Description:
137
+
Color gradients are smooth transitions between the colors defined at consecutive offsets. The <gradientStops> property represents the offset and color of each of these stops.
138
+
139
+
*/
99
140
property gradientStops get getGradientStops set setGradientStops
0 commit comments