Skip to content

material v2.0.0

Choose a tag to compare

@Nadim147c Nadim147c released this 15 Dec 15:04
· 15 commits to main since this release
49a8af3

πŸš€ Features

  • (core) Create alias for dynamic enums
  • (core) [breaking] Unify color generation into a single function
  • (color) [breaking] Scale OkLab color model to 0–100 range
  • (num) [breaking] Remove Matrix3.MultiplyXYZ method
  • (color) Add LinearRGB color model
  • (color) Add OkLch color model
  • (colro) [breaking] Add json tag to hct color
  • (dynamic) Add json tag to dynamic.Scheme
  • (color) [breaking] Encode ARGB as #RRGGBB hex instead #RRGGBBAA
  • (color) [breaking] Add json tag to Cam16 model
  • (color) [breaking] Add json tag to color models
  • (core) Add Map method to Colors
  • (core) Add WithSettings options
  • (core) Add WithContext Option
  • (color) Add CIELUV color model
  • (color) Add LCHab and LCHuv color model
  • (color) [breaking] Make labFunc and labInvFunc private
  • (color) Add Model interface ensuring models has common methods
  • (core) Add custom color support

πŸ› Bug Fixes

  • (core) Make the Settings' fields public

🚜 Refactor

  • (color) [breaking] Avoid pointer and rename ToCam -> ToCam16
  • (color) Change parameter name for OkLabFromXYZ
  • (color) [breaking] Change the names of CAT matrices
  • (color) Addjust docs and style for Hct
  • (color) [breaking] Change name RGB <-> XYZ matrices
  • (color) [breaking] Rename Values -> Components
  • (core) Use single line for With funcs
  • (num) Remove unused methods and same changes

πŸ“š Documentation

  • (color) Use accurate description for ToLinearRGB method
  • (color) Add idiomatic go doc comments for ARGB
  • (color) Add correct range for OkLab model
  • (blend) Add idiomatic docs comment
  • (contrast) Add idiomatic docs comment
  • (dislike) Add idiomatic docs comment
  • (dynamic) Add idiomatic docs comment
  • (example) Add color generation example
  • (example) Add v2 example on README
  • (example) Add gradient example
  • (example) Add ffmpeg generate example
  • (example) Add example for generate from color
  • (README) Update readme with example link
  • (example) Add preview to examples
  • (dynamic) Update to doc comment
  • Add features set in readme
  • Add all color model in readme
  • (core) Add go doc example for Generate

⚑ Performance

  • (color) Use precomputed const for WhitePointD65 in Luv
  • (color) Optimize for function inline and heap escape
  • (quantizer) Remove QuantizeMap for exponential perf improvement

βš™οΈ Miscellaneous Tasks

  • [breaking] Update major version of the package
  • Update license