Everything a plot's colors come from: categorical slots (light and dark steps of the same hues), chrome for each mode, a sequential ramp (light = small) and a diverging pair. Palette.brand (the default) is TDA4j's Teal & Gold; Palette.reference is the neutral palette of the dataviz method. Make your own with withSeries, withSurface and copy.
A palette is a Tweak: fig + Palette.reference recolors every part of the figure, heatmaps and cocycles included.
Attributes
- Companion
- object
- Experimental
- true
- Source
- Color.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Tweakclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
The CSS variable a paint resolves through under Theme.Auto, or its hex for a fixed color.
The CSS variable a paint resolves through under Theme.Auto, or its hex for a fixed color.
Attributes
- Source
- Color.scala
The CSS custom properties of both modes, scoped to selector.
t in [-1, 1]: divergingNegative below zero, the neutral midpoint at zero, divergingPositive above.
t in [-1, 1]: divergingNegative below zero, the neutral midpoint at zero, divergingPositive above.
Attributes
- Source
- Color.scala
The color of a paint that needs only the palette. A Paint.Value needs the figure's ColorScale as well, so it is colored by ColorScale.hex and has no color here.
The color of a paint that needs only the palette. A Paint.Value needs the figure's ColorScale as well, so it is colored by ColorScale.hex and has no color here.
Attributes
- Source
- Color.scala
figure with this change.
scene with this change: only tweaks of the labels, the size and the look apply to a 3-D scene.
scene with this change: only tweaks of the labels, the size and the look apply to a 3-D scene.
Attributes
- Definition Classes
- Source
- Color.scala
t in [0, 1] on the sequential ramp.
This palette with each degree's own color where a DegreeStyle gives one.
This palette with each degree's own color where a DegreeStyle gives one.
Attributes
- Source
- Color.scala
This palette with the categorical slots colors (light mode) and dark (dark mode, default: the same colors). Slot k colors homological degree k, so list them in degree order.
This palette with the categorical slots colors (light mode) and dark (dark mode, default: the same colors). Slot k colors homological degree k, so list them in degree order.
Attributes
- Source
- Color.scala
This palette on other surfaces (the figure's background): light in light mode, dark (default: unchanged) in dark mode. withSurface("#ffffff") for a figure that goes onto a white page.
This palette on other surfaces (the figure's background): light in light mode, dark (default: unchanged) in dark mode. withSurface("#ffffff") for a figure that goes onto a white page.
Attributes
- Source
- Color.scala
Inherited methods
This change, then that one.
board with this change in every figure of it.
page with this change in every panel of it; a tweak a 3-D panel cannot have leaves that panel as it is.
page with this change in every panel of it; a tweak a 3-D panel cannot have leaves that panel as it is.
Attributes
- Inherited from:
- Tweak
- Source
- Tweak.scala
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
Attributes
- Inherited from:
- Product
- Source
- Product.scala
An iterator over all the elements of this product.
An iterator over all the elements of this product.
Attributes
- Returns
-
in the default implementation, an
Iterator[Any] - Inherited from:
- Product
- Source
- Product.scala