API reference

ColorStops Class

Implements Iterable
Immutable, introspectable colors used by a BrushSpec.

Signature

@Immutable class ColorStops : Iterable<Color>

Properties

size : Int
[Get]
Signature
val size: Int

Methods

asList ()
Signature
fun asList(): List<Color>
Returns
List
forEach ( p0 )
Signature
open fun forEach(p0: Consumer<in Color>)
Parameters
p0: Consumer
get ( index )
Signature
operator fun get(index: Int): Color
Parameters
index: Int
Returns
Color
iterator ()
Signature
open operator override fun iterator(): Iterator<Color>
Returns
Iterator
spliterator ()
Signature
open fun spliterator(): Spliterator<Color>
Returns
Spliterator

Companion Object

Methods

of ( color )
Creates one color stop.
Signature
fun of(color: Color): ColorStops
Parameters
color: Color  retained color
Returns
ColorStops
of ( first , second )
Creates two ordered color stops.
Signature
fun of(first: Color, second: Color): ColorStops
Parameters
first: Color  first retained color
second: Color  second retained color
Returns
ColorStops