Skip to content

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

Description

@danburzo

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

FeatureNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions