intaro/color-interpolator

Interpolate color in the spectral band

Maintainers

Package info

github.com/intaro/color-interpolator

pkg:composer/intaro/color-interpolator

Statistics

Installs: 701 048

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

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

This package is auto-updated.

Last update: 2026-03-01 00:20:30 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);