CPColor

org.cosplay.CPColor$
See theCPColor companion class
object CPColor

Companion object contains utility functions and color constants.

Attributes

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

Members list

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def apply(rgb: String): CPColor

Creates new color with this RGB string value.

Creates new color with this RGB string value.

Value parameters

rgb

RGB value.

Attributes

Example
CPColor("0x1212ef")
CPColor("123123")
Source
CPColor.scala
def apply(rgb: Int): CPColor

Creates new color with this RGB value.

Creates new color with this RGB value.

Value parameters

rgb

RGB value.

Attributes

Source
CPColor.scala
def delta(c1: CPColor, c2: CPColor): Array[Float]

Gets the degree of difference in [0,1] range between color c1 and c2. Color c1 is considered as 100%.

Gets the degree of difference in [0,1] range between color c1 and c2. Color c1 is considered as 100%.

Value parameters

c1

Color 1, considered as 100%.

c2

Color 2.

Attributes

Source
CPColor.scala
def fromHSB(hue: Float, saturation: Float, brightness: Float): CPColor

Creates new color with given hue, saturation and brightness values. Each value must be in [0, 1] range.

Creates new color with given hue, saturation and brightness values. Each value must be in [0, 1] range.

Value parameters

brightness

Brightness value in [0,1] range.

hue

Hue value in [0,1] range.

saturation

Saturation value in [0,1] range.

Attributes

Source
CPColor.scala
def gradientFun(c1: CPColor, c2: CPColor, steps: Int): () => CPColor

Creates function for gradient color between two given colors.

Creates function for gradient color between two given colors.

Value parameters

c1

Color 1.

c2

Color 2.

steps

How many step of gradients between color 1 and color 2 to generate.

Attributes

Source
CPColor.scala
def gradientSeq(c1: CPColor, c2: CPColor, steps: Int): Seq[CPColor]

Creates sequence of gradient colors between two given colors.

Creates sequence of gradient colors between two given colors.

Value parameters

c1

Color 1.

c2

Color 2.

steps

How many step of gradients between color 1 and color 2 to generate.

Attributes

Source
CPColor.scala
def mixture(c1: CPColor, c2: CPColor, balance: Float): CPColor

Gets a new color that is a mixture between given two colors with specified balance.

Gets a new color that is a mixture between given two colors with specified balance.

Value parameters

balance

Mixture balance. Value must be in [0,1] range. Value 0 means that color c1 will be 100% of the mixture, value 1 means that color c2 will be 100% of the mixture.

c1

First color to mix.

c2

Second color to mix.

Attributes

Source
CPColor.scala

Concrete fields

val CS_X11_ALL: Seq[CPColor]

Attributes

Source
CPColor.scala
val CS_X11_BLUES: Seq[CPColor]

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala
val CS_X11_CYANS: Seq[CPColor]

Attributes

Source
CPColor.scala
val CS_X11_GRAYS: Seq[CPColor]

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala
val CS_X11_PINKS: Seq[CPColor]

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala
val CS_X11_REDS: Seq[CPColor]

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala
val CS_XTERM_ALL: Seq[CPColor]

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala
val C_RED: CPColor

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala
val C_SYS_GROUP: Seq[CPColor]

Attributes

Source
CPColor.scala
val C_TAN: CPColor

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala
val C_X11_GROUPS: Seq[Seq[CPColor]]

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala

Attributes

Source
CPColor.scala