prism 2.0.0-beta.1
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
RayRgbintoRayRgb8(8-bit) andRayRgb16(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