Skip to content

4.1.0

Choose a tag to compare

@ozdemirburak ozdemirburak released this 05 Dec 13:17
· 3 commits to master since this release

Added gradient() method for generating color scales (#51, #50)

  • Supports two-color gradients: $colorA->gradient($colorB, $steps)
  • Supports multi-color gradients with pivots: $colorA->gradient([$colorB, $colorC], $steps)
  • Works with all color types (Hex, RGB, HSL, HSV, CMYK, OKLCH, RGBA, HSLA)
  • Returns array of colors matching the starting color type
  • Added comprehensive tests for all color types and edge cases