Evercoder / Evercoder/culori

mix() function, and 2d/3d counterparts

Open
#209 0 comments 2 reactions 1 assignee Claimed by @danburzo View on GitHub
Feature
Dominant language
JavaScript
Stars
1.2k
Forks
38
PR merge metrics
No merged PRs in 30d

Description

The idea came up in #207 that it would be nice to have `mix*()` helper functions as shortcuts to linear, bilinear, and trilinear interpolation of colors in a particular color space:

* `mix([colorA, colorB])(t)` is equivalent to `interpolate([colorA, colorB])`
* `mix2d(colors)(tx, ty)` for bilinear interpolation
* `mix3d(colors)(tx, ty, tz)` for trilinear interpolation

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.