CycleMethod

smile.colors.LinearGradient.CycleMethod

Defines the cycle methods available for a LinearGradient.

These cycle methods determine how the gradient pattern continues beyond its defined start and end points. Every renderer honors them. Java2D and SVG have the three methods built in. The canvas only continues the end colors, so it is handed a gradient with the cycles written out as stops across everything it can show (see smile.colors.LinearGradient.writtenOutOver).

Attributes

Source
LinearGradient.scala
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 NoCycle extends CycleMethod

The gradient does not repeat. It displays the terminal colors beyond the start and end points.

The gradient does not repeat. It displays the terminal colors beyond the start and end points.

Attributes

Source
LinearGradient.scala
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

Source
LinearGradient.scala
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

Source
LinearGradient.scala