Packages

final class Color extends AnyVal

Source
color.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Color
  2. AnyVal
  3. Any
Implicitly
  1. by richDrxAny
  2. by DrxBoundOps
  3. by any2stringadd
  4. by StringFormat
  5. by Ensuring
  6. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Color(argb: Int)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Color toany2stringadd[Color] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. 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
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  6. def a: Int
  7. def alpha(a: Int): Color
  8. def ansi(body: String, bg: Color): String
  9. def ansi(body: String): String
  10. def apply[A, B](a: A)(implicit c: Colorizer[A, B]): B
  11. 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
  12. 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
  13. val argb: Int
  14. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  15. def b: Int
  16. def brighter: Color
  17. def brighter(k: Double): Color
  18. def closest(colors: Iterable[Color]): Color
  19. def closestName(nameMap: Map[String, Color]): String
  20. def complement: Color
  21. def cssHex: String
  22. def cssName: String
  23. def darker: Color
  24. def darker(k: Double): Color
  25. def dist(that: Color): Double

    relative distance metric used for closeness https://en.wikipedia.org/wiki/Color_difference

  26. def drxName: String
  27. 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
  28. def ensuring(cond: (Color) => Boolean, msg: => Any): Color
    Implicit
    This member is added by an implicit conversion from Color toEnsuring[Color] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  29. def ensuring(cond: (Color) => Boolean): Color
    Implicit
    This member is added by an implicit conversion from Color toEnsuring[Color] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  30. def ensuring(cond: Boolean, msg: => Any): Color
    Implicit
    This member is added by an implicit conversion from Color toEnsuring[Color] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  31. def ensuring(cond: Boolean): Color
    Implicit
    This member is added by an implicit conversion from Color toEnsuring[Color] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  32. def fill: Fill
  33. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Color toStringFormat[Color] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  34. def g: Int
  35. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  36. def hcl: HCL
  37. def hex: String
  38. def invert: Color
  39. def isFullyTransparent: Boolean
  40. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  41. def isOpaque: Boolean
  42. def isTransparent: Boolean
  43. def lerp(that: Color)(amt: Double): Color
  44. def map(f: (Int) => Int): Color
  45. def moreOpaque(k: Double = 1.0): Color
  46. def moreOpaque: Color
  47. def moreTransparent(k: Double = 1.0): Color
  48. def moreTransparent: Color
  49. 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
  50. def opacity(ratio: Double): Color
  51. 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
  52. 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
  53. def r: Int
  54. 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
  55. 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
  56. def stroke: Stroke
  57. 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
  58. 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
  59. def toAwt: java.awt.Color
  60. def toString(): String
    Definition Classes
    Color → Any
  61. def vec: Vec

    rgb as a drx.Vec

  62. def ~(that: Color): Bound[Color]

Deprecated Value Members

  1. 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

  2. def darken(v: Int): Color
    Annotations
    @deprecated
    Deprecated

    (Since version v0.1.3) use d3js like darker instead

  3. 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)

  4. 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.

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion richDrxAny fromColor to DrxAny[Color]

Inherited by implicit conversion DrxBoundOps fromColor to BoundOps[Color]

Inherited by implicit conversion any2stringadd fromColor to any2stringadd[Color]

Inherited by implicit conversion StringFormat fromColor to StringFormat[Color]

Inherited by implicit conversion Ensuring fromColor to Ensuring[Color]

Inherited by implicit conversion ArrowAssoc fromColor to ArrowAssoc[Color]

Ungrouped