intaro/color-interpolator

在光谱波段中插值颜色

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

This package is auto-updated.

Last update: 2024-08-30 01:12:11 UTC


README

在光谱波段中插值颜色。

用法

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