https://github.com/intaro/color-interpolator
Interpolate color in the spectral band
https://github.com/intaro/color-interpolator
Last synced: over 1 year ago
JSON representation
Interpolate color in the spectral band
- Host: GitHub
- URL: https://github.com/intaro/color-interpolator
- Owner: intaro
- License: mit
- Created: 2014-07-31T08:45:36.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2024-01-30T16:24:50.000Z (over 2 years ago)
- Last Synced: 2024-09-16T08:38:04.884Z (almost 2 years ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 2
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Color Interpolator
Interpolate color in the spectral band.
## Usage
```php
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);
```