ColorPalette

class ColorPalette(val primary: IsoColor = IsoColor(33.0, 150.0, 243.0), val secondary: IsoColor = IsoColor(255.0, 100.0, 0.0), val accent: IsoColor = IsoColor(0.0, 200.0, 100.0), val background: IsoColor = IsoColor(245.0, 245.0, 245.0), val surface: IsoColor = IsoColor(255.0, 255.0, 255.0), val error: IsoColor = IsoColor(244.0, 67.0, 54.0))

A palette of named semantic colors for theming an isometric scene.

Provides a small, fixed set of color roles that shapes and composables can reference for consistent visual styling. Create a customised palette via the constructor or by calling copy on an existing instance.

Marked as @Immutable to prevent unnecessary recomposition when instances do not change.

Parameters

primary

The main brand color, used for prominent shapes. Defaults to blue.

secondary

A complementary color for secondary elements. Defaults to orange.

accent

A highlight color for interactive or attention-drawing shapes. Defaults to green.

background

The scene background color. Defaults to light grey.

surface

Color for surface-level elements such as floors or panels. Defaults to white.

error

Color used to indicate error states. Defaults to red.

Constructors

Link copied to clipboard
constructor(primary: IsoColor = IsoColor(33.0, 150.0, 243.0), secondary: IsoColor = IsoColor(255.0, 100.0, 0.0), accent: IsoColor = IsoColor(0.0, 200.0, 100.0), background: IsoColor = IsoColor(245.0, 245.0, 245.0), surface: IsoColor = IsoColor(255.0, 255.0, 255.0), error: IsoColor = IsoColor(244.0, 67.0, 54.0))

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun copy(primary: IsoColor = this.primary, secondary: IsoColor = this.secondary, accent: IsoColor = this.accent, background: IsoColor = this.background, surface: IsoColor = this.surface, error: IsoColor = this.error): ColorPalette
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String