intaro / color-interpolator
Interpolate color in the spectral band
Installs: 439 665
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-11-30 01:56:18 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);