hsluv 1.3.0
hsluv: ^1.3.0 copied to clipboard
Dart port of HSLuv, a human-friendly alternative to HSL based on human experiments.
1.3.0 #
- Add
HsluvConverterfor allocation-free, reusable scalar conversions and routeHsluvstatic helpers through it so math lives in one place without intermediateList/Lineallocations. - Clamp floating-point boundary overshoot on
hsluvToRgb,hpluvToRgb,rgbToHsluv,rgbToHpluv(HandL, keepingSunclamped for out-of-gamut sRGB round-trips), andrgbToHexchannels (0..255). - Validate
#RRGGBBformat inHsluv.hexToRgband throwFormatExceptionon malformed hex strings. - Verify conversions against the canonical 4,096-entry upstream
snapshot-rev4.jsonfixture, expand Dartdoc to zero warnings, and refresh README visualizations.
1.2.0 #
- Require Flutter 3.50+ / Dart 3.14+ (uses
dart:uifloating-pointColorchannels, compatible with standalonematerial_uiand bundled Flutter apps). - Export
HSLuvColor, extensions,ColorPicker,Contrast, andGeometrydirectly frompackage:hsluv/hsluv.dart. - Add
HSLuvColor.fromRawColor,toRawHSLuv(), andround:option onHSLuvColor.fromColor/toHSLuv(). - Fix
ColorPicker.getPickerGeometrygamut polygon sampling. - Deprecate the bundled Flutter example in favor of Chroma Folio.
1.1.3 #
- Update constraints to Flutter 2.19.
1.1.2 #
- Remove not null assert, which is not necessary anymore.
1.1.1 #
- Minor fixes related to null safety.
1.1.0 #
- Add null safety.
1.0.6 #
- Add addHue, addSaturation, addLightness, addHSLuv methods.
1.0.5+1 #
- Fix lightness and saturation documentation. It was saying they range from [0, 1] instead of [0, 100].
1.0.5 #
- Remove additional "(" in toString method from HSLuvColor.
1.0.4 #
- Initial port of HSLuv with a nice sample app.