GradientPropertyTo

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
the to of <mGradient>
Associationscom.livecode.canvas
Summary

The to point of a gradient paint.

Parameters
NameTypeDescription
mGradient

An expression which evaluates to a gradient.

Example
// Create new gradient paint
variable tGradient
put linear gradient with ramp [gradient stop at 0 with color [0,0,0], gradient stop at 1 with color [1,1,1]] into tGradient

variable tRect
put rectangle [ 20, 10, 120, 60 ] into tRect

// Set the end point of the gradient to the right of tRect
set the from of tGradient to point [the right of tRect, (the top of tRect + the bottom of tRect) / 2]
Description

The to point of mGradient as a point. Defines the end point when drawing the gradient.

Tagscanvas