intaro/color-interpolator

Interpolate color in the spectral band

v0.2.0 2024-01-30 16:24 UTC

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);