LinearGradient

smile.colors.LinearGradient
See theLinearGradient companion class

Attributes

Companion
class
Source
LinearGradient.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

Defines the cycle methods available for a LinearGradient.

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
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def apply(start: Pos, end: Pos, from: Color, to: Color): LinearGradient

A gradient from from at start to to at end that continues its end colors beyond them.

A gradient from from at start to to at end that continues its end colors beyond them.

Attributes

Source
LinearGradient.scala
def apply(start: Pos, end: Pos, from: Color, to: Color, cycleMethod: CycleMethod): LinearGradient

A gradient from from at start to to at end that continues beyond them by cycleMethod.

A gradient from from at start to to at end that continues beyond them by cycleMethod.

Attributes

Source
LinearGradient.scala