PuzzleArtwork class
A logical cell mask with its palette and optional original PNG.
Constructors
- PuzzleArtwork(SolutionGrid solution, Palette palette, {Uint8List? sourcePng})
- Combines a logical grid, palette, and optional original PNG.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- palette → Palette
-
The rendering palette; index zero is background.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- solution → SolutionGrid
-
The complete logical cell mask, independent of PNG decoration.
final
- sourcePng → Uint8List?
-
Original decorative/alpha artwork, separate from the logical cell mask.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMonochrome(
) → SolutionGrid - Maps every foreground color to one, preserving background zero.
-
toPuzzle(
{List< Given> givens = const []}) → PuzzleDefinition - Derives clues from the logical mask and supplies optional givens.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited