intaro / color-interpolator
Interpolate color in the spectral band
Installs: 410 360
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 6
Forks: 1
Open Issues: 0
Requires
- php: >=5.4.4
This package is auto-updated.
Last update: 2024-10-30 01:31:46 UTC
README
Interpolate color in the spectral band.
Usage
use Intaro\ColorInterpolator\Color; use Intaro\ColorInterpolator\ColorInterpolator; // start rgb color $startColor = new Color('5fb8df'); // ending rgb color $endingColor = new Color('3b9bcf'); $color = ColorInterpolator::interpolate($startColor, $endingColor);