CycleMethod

smile.colors.LinearGradient.CycleMethod

Defines the cycle methods available for a LinearGradient.

These cycle methods determine how the gradient pattern repeats (or doesn't) beyond its defined start and end points.

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

case case NO_CYCLE extends CycleMethod

The gradient does not repeat; it will display the terminal colors beyond the start and end points.

The gradient does not repeat; it will display the terminal colors beyond the start and end points.

Attributes

case case REFLECT extends CycleMethod

The gradient pattern repeats by mirroring the gradient along the axis perpendicular to the gradient's start and end points.

The gradient pattern repeats by mirroring the gradient along the axis perpendicular to the gradient's start and end points.

Attributes

case case REPEAT extends CycleMethod

The gradient pattern repeats by cycling the colors from start to end.

The gradient pattern repeats by cycling the colors from start to end.

Attributes