Gradients with transparency?

Mark Waddingham mark at livecode.com
Mon Apr 3 06:29:54 EDT 2017


On 2017-04-03 11:37, Terry Judd via use-livecode wrote:
> Is it possible to have a gradient with one of its end-points being
> transparent instead of a solid colour?

Yes the color values you specify for gradients can have an alpha 
component. For example:

   0.5,255,0,0 -> at half way through the gradient, the color should be 
solid red

   0.5,255,0,0,127 -> at half way through the gradient, the color should 
be 50% transparent red.

Hope this helps!

Mark.

-- 
Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps




More information about the use-livecode mailing list