II. GUI Basics
Border Color
Method signature
setBorderColor = "
[color] start,
[color] end,
[int] curve"
[color] is a 6 digit hexadecimal value
[int] is an integer value, -2,147,483,648 to 2,147,483,647
Examples
In this example we will be using a button widget
.. setBorderColor="FF0000,FFFFFF,
0" ..
it reads as;
Starting from the color red (FF0000)
to the highlight color of white (FFFFFF),
while using the
linear curve to render the border
(0)
Let's use a concave transformation to render the border and look at the difference
.. setBorderColor="FF0000,FFFFFF,
1" ..
Starting from the color red (FF0000)
to the highlight color of white (FFFFFF),
while using the
concave curve to render the border
(1)
Let's use a convex transformation to render the border and look at the difference
.. setBorderColor="FF0000,FFFFFF,
2" ..
Starting from the color red (FF0000)
to the highlight color of white (FFFFFF),
while using the
convex curve to render the border
(2)
Notes
For the
softest curves use a convex curve transformation.
This works particularly well on light backgrounds, since most of the transistioning colors
gets pushed to lighter end of the spectrum thus blending with the background
See also the Widgets Style for 'Gradient Color'
Back
Next