ChromaColour

public final class ChromaColour(source)

Constructors

Link copied to clipboard
public ChromaColour ChromaColour(Float hue, Float saturation, Float brightness, Integer timeForFullRotationInMillis, Integer alpha)

Properties

Link copied to clipboard
private final Integer alpha

Alpha in a range from 0 to 255 (with 255 being fully opaque).

Link copied to clipboard
private final Float brightness

Brightness in a range from 0 to 1

Link copied to clipboard
private final Float hue

Hue in a range from 0 to 1. For a chroma colour this is added to the time as an offset.

Link copied to clipboard
private final Float saturation

Saturation in a range from 0 to 1

Link copied to clipboard

If set to 0, this indicates a static colour. If set to a value above 0, indicates the amount of milliseconds that pass until the same colour is met again. This value may be saved lossy.

Functions

Link copied to clipboard
@Deprecated(message = "")
public final static ChromaColour forLegacyString(String stringRepresentation)
Link copied to clipboard
public final static ChromaColour fromRGB(Integer r, Integer g, Integer b, Integer chromaSpeedMillis, Integer a)
Link copied to clipboard
public final static ChromaColour fromStaticRGB(Integer r, Integer g, Integer b, Integer a)
Link copied to clipboard
public final Integer getAlpha()

Alpha in a range from 0 to 255 (with 255 being fully opaque).

Link copied to clipboard
public final Float getBrightness()

Brightness in a range from 0 to 1

Link copied to clipboard
public final Color getEffectiveColour()
public final Color getEffectiveColour(Float offset)
Link copied to clipboard
public final Integer getEffectiveColourRGB(Float offset)
Link copied to clipboard

Unlike getEffectiveColour, this offset does not change anything if not using an animated colour.

Link copied to clipboard

Unlike getEffectiveColourRGB, this offset does not change anything if not using an animated colour.

Link copied to clipboard
public final Float getHue()

Hue in a range from 0 to 1. For a chroma colour this is added to the time as an offset.

Link copied to clipboard
public final Float getSaturation()

Saturation in a range from 0 to 1

Link copied to clipboard
@Deprecated(message = "")
public final static Float getSecondsForSpeed(Integer speed)
Link copied to clipboard
@Deprecated(message = "")
public final static Integer getSpeed(String special)
Link copied to clipboard

If set to 0, this indicates a static colour. If set to a value above 0, indicates the amount of milliseconds that pass until the same colour is met again. This value may be saved lossy.

Link copied to clipboard
@Deprecated(message = "")
public final static Integer rotateHue(Integer argb, Integer degrees)
Link copied to clipboard
@Deprecated(message = "")
public final static String special(Integer chromaSpeed, Integer alpha, Integer rgb)
@Deprecated(message = "")
public final static String special(Integer chromaSpeed, Integer alpha, Integer r, Integer g, Integer b)
Link copied to clipboard
@Deprecated(message = "")
public final static Integer specialToChromaRGB(String special)
Link copied to clipboard
@Deprecated(message = "")
public final static Integer specialToSimpleRGB(String special)
Link copied to clipboard
@Deprecated(message = "")
public final String toLegacyString()