prism_flutter library

Flutter extensions for the Prism color manipulation library.

Provides conversion between RayRgb8 and Flutter Color objects.

Classes

PrismPalette
Ray
Abstract base class for all Ray color implementations.
RayHsl
HSL color implementation with intuitive hue, saturation, and lightness controls.
RayOklab
Oklab color space implementation for perceptually uniform color manipulation.
RayOklch
Oklch color space implementation with intuitive lightness, chroma, and hue controls.
RayRgb16
16-bit RGB color implementation with support for high precision color operations.
RayRgb8
8-bit RGB color implementation with support for multiple input/output formats.
RayRgbBase<T extends Ray, D>
Abstract base class for RGB color implementations with shared operations.
RayWithLuminance<T extends Ray>
Color with cached luminance for performance.
Spectrum<T extends RayWithLuminance<Ray>>
Color scheme with harmonious relationships and accessibility features.

Enums

ColorSpace
Enumeration of supported color spaces.
HexFormat
Hexadecimal color format for parsing and output.
RayTone
ToneType

Extensions

FlutterColorToRay on Color
Extension methods for Flutter Color to convert to RayRgb8 objects.
RayToFlutterColor on Ray
Extension methods for Ray to convert to Flutter Color objects.
RayWithLuminanceOklchExtensions on RayWithLuminance<RayOklch>
Extension methods for Oklch-specific functionality
RayWithLuminanceRgb8Extensions on RayWithLuminance<RayRgb8>
Extension methods for RGB-specific functionality

Typedefs

RayRgb = RayRgb8
Backward compatibility typedef for existing code.
RayWithLuminanceBase = RayWithLuminance<Ray>
Type alias for the base type used in generic contexts
RayWithLuminanceOklch = RayWithLuminance<RayOklch>
Type alias for backward compatibility and cleaner API
RayWithLuminanceRgb8 = RayWithLuminance<RayRgb8>
Type alias for backward compatibility and cleaner API