prism 2.0.0-beta.1 copy "prism: ^2.0.0-beta.1" to clipboard
prism: ^2.0.0-beta.1 copied to clipboard

A powerful and efficient color manipulation library for Dart and Flutter applications. Features Ray class, RayScheme accessibility tools, and extensive color palettes.

2.0.0-beta.1 #

Major Changes:

  • Multi-color space support: Added RayHsl, RayOklab, and RayOklch alongside RayRgb8/RayRgb16
  • Perceptually uniform color operations: via Oklab color space
  • RayScheme system: Intelligent color schemes with accessibility and tonal palettes
  • Pre-built palettes: CSS, Material, OpenColor, and Spectrum with pre-computed luminance
  • Palette output generation: Efficient dart enums, PNG palette previews, CSS output
  • Enhanced gallery: Compact Oklch-focused HTML previews with luminance data

Breaking Changes:

  • RayRgb split: Separated RayRgb into RayRgb8 (8-bit) and RayRgb16 (16-bit)
  • Multi-precision RGB: Support for both 8-bit (0-255) and 16-bit (0-65535) color channels
  • API structure: Updated to support multiple color spaces (RayRgb8, RayRgb16, RayHsl, RayOklab, RayOklch)
  • New palette system: Enhanced palette generation with pre-computed schemes

1.0.0 #

  • Initial release of Prism - a comprehensive color manipulation library
  • Ray class: Clean, intuitive API for color operations
  • Multiple formats: Support for RGB, ARGB, hex strings, and CSS strings
  • Dual hex format support: Both web standard (RGBA) and Flutter/Android (ARGB) formats
  • Performance optimized: Efficient bit operations with zero dependencies
  • Type safe: Comprehensive error handling and validation
  • WCAG compliance: Luminance calculations for accessibility
  • Color operations: Interpolation, inversion, opacity/alpha manipulation
  • Flutter compatible: Internal ARGB format matches Flutter's Color class
  • Comprehensive test coverage: 38+ tests covering all functionality
5
likes
0
points
159
downloads

Publisher

verified publisherrocketware.co.uk

Weekly Downloads

A powerful and efficient color manipulation library for Dart and Flutter applications. Features Ray class, RayScheme accessibility tools, and extensive color palettes.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on prism