Steering class final
One attempt's steering.
Constructors
- Steering(ThemeIntent intent, {bool centred = false})
Properties
- baseRange → ({int lo, int span})?
-
The steered base hue range as (lo tenths, clockwise span tenths), or
null when the intent sets no base hue.
no setter
- centred → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- intent → ThemeIntent
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
accentHue(
Rng r, int index) → int? -
The steered operator (
index0) or=(index1) hue (tenths), drawn fromr; null when the intent names no accent colour, or names a harmony (which then places the accents). -
baseHue(
Rng r) → int? -
The steered base hue (tenths), drawn from
r; null when the intent sets no base hue. Always draws once when steering hues, so the accent draws keep their place. -
brightnessFor(
FamilyDefinition def) → ThemeBrightness? -
The brightness to use instead of the drawn one, when
defcan draw it; null keeps the draw. -
closestHero(
int seed, ThemeFamily family) → ThemeSpec -
The deterministic last resort for a steered (
seed,family) when every attempt fails: the hero closest to the intent (brightness first, then base hue), preferring the family's own heroes. -
nameOr(
String generated()) → String -
The theme's name: the intent's, else
generated. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pickIn(
int lo, int span, int u32) → int -
A hue in the clockwise range (lo, span) from the 32-bit draw
u32(its middle when centred). -
revise(
FamilyDefinition def) → FamilyDefinition -
defwith every role's chroma range narrowed to the intent's chroma level (and the base roles quietened for a neutral first colour). -
schemeFor(
List< Weighted< schemes) → HarmonyScheme?HarmonyScheme> > -
The harmony scheme to use instead of the drawn one, when
schemesoffers it; null keeps the draw. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited