GradientStopMake

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
gradient stop at <mOffset> with <mColor>
Associationscom.livecode.canvas
Summary

Creates a new gradient stop.

Parameters
NameTypeDescription
mOffset

An expression which evaluates to a number.

mColor

An expression which evaluates to a color.

Example
// List to hold gradient stops
variable tRamp
put the empty list into tRamp

// First gradient stop is red at position 0
push gradient stop at 0 with color [1,0,0] onto tRamp

// Second stop is half-transparent green at position 0.5
push gradient stop at 0.5 with color [0,1,0,0.5] onto tRamp

// Third stop is blue at position 1
push gradient stop at 1 with color [0,0,1] onto tRamp
Values
NameTypeDescription
return

A new gradient stop.

Description

Creates a new gradient stop.

Tagscanvas