final class Color extends AnyVal
- Source
- color.scala
- Alphabetic
- By Inheritance
- Color
- AnyVal
- Any
- by richDrxAny
- by DrxBoundOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- def +(other: String): String
- def ->[B](y: B): (Color, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def a: Int
- def alpha(a: Int): Color
- def ansi(body: String, bg: Color): String
- def ansi(body: String): String
- def apply[A, B](a: A)(implicit c: Colorizer[A, B]): B
- def applyIf(t: Boolean, f: (Color) => Color): Color
- Implicit
- This member is added by an implicit conversion from Color toDrxAny[Color] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def applyIf(t: (Color) => Boolean)(f: (Color) => Color): Color
better chaining for types
better chaining for types
- Implicit
- This member is added by an implicit conversion from Color toDrxAny[Color] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- val argb: Int
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def b: Int
- def brighter: Color
- def brighter(k: Double): Color
- def closest(colors: Iterable[Color]): Color
- def closestName(nameMap: Map[String, Color]): String
- def complement: Color
- def cssHex: String
- def cssName: String
- def darker: Color
- def darker(k: Double): Color
- def dist(that: Color): Double
relative distance metric used for closeness https://en.wikipedia.org/wiki/Color_difference
- def drxName: String
- def elementOf(xs: Set[Color]): Boolean
- Implicit
- This member is added by an implicit conversion from Color toDrxAny[Color] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ensuring(cond: (Color) => Boolean, msg: => Any): Color
- def ensuring(cond: (Color) => Boolean): Color
- def ensuring(cond: Boolean, msg: => Any): Color
- def ensuring(cond: Boolean): Color
- def fill: Fill
- def formatted(fmtstr: String): String
- def g: Int
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def hcl: HCL
- def hex: String
- def invert: Color
- def isFullyTransparent: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isOpaque: Boolean
- def isTransparent: Boolean
- def lerp(that: Color)(amt: Double): Color
- def map(f: (Int) => Int): Color
- def moreOpaque(k: Double = 1.0): Color
- def moreOpaque: Color
- def moreTransparent(k: Double = 1.0): Color
- def moreTransparent: Color
- def noneIf(f: (Color) => Boolean): Option[Color]
- Implicit
- This member is added by an implicit conversion from Color toDrxAny[Color] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def opacity(ratio: Double): Color
- def optionIf(f: (Color) => Boolean): Option[Color]
optionally wrap an object
optionally wrap an object
- Implicit
- This member is added by an implicit conversion from Color toDrxAny[Color] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def preApply[B](f: (Color) => B): B
a preApply f => f(a)
a preApply f => f(a)
- Implicit
- This member is added by an implicit conversion from Color toDrxAny[Color] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def r: Int
- def sideEffect(f: (Color) => Unit): Color
side effect filter
side effect filter
- Implicit
- This member is added by an implicit conversion from Color toDrxAny[Color] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def someIf(f: (Color) => Boolean): Option[Color]
- Implicit
- This member is added by an implicit conversion from Color toDrxAny[Color] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def stroke: Stroke
- val thisAny: Color
- Implicit
- This member is added by an implicit conversion from Color toDrxAny[Color] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def till(maxArg: Color): Bound[Color]
Bound construction since the Range constructor is deprecated
Bound construction since the Range constructor is deprecated
- Implicit
- This member is added by an implicit conversion from Color toBoundOps[Color] performed by method DrxBoundOps in cc.drx.predef.Enrich.
- Definition Classes
- BoundOps
- def toAwt: java.awt.Color
- def toString(): String
- Definition Classes
- Color → Any
- def vec: Vec
rgb as a drx.Vec
- def ~(that: Color): Bound[Color]
Deprecated Value Members
- def ?>(f: (Color) => Boolean): Option[Color]
alias for option if
alias for option if
- Implicit
- This member is added by an implicit conversion from Color toDrxAny[Color] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) to many symbols are hard to undertand
- def darken(v: Int): Color
- Annotations
- @deprecated
- Deprecated
(Since version v0.1.3) use d3js like darker instead
- def |>[B](f: (Color) => B): B
- Implicit
- This member is added by an implicit conversion from Color toDrxAny[Color] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use
preApply
if you must (symbols are concise without concision)
- def →[B](y: B): (Color, B)
- Implicit
- This member is added by an implicit conversion from Color toArrowAssoc[Color] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.