Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
danburzo opened this issue Jul 23, 2023 · 0 comments
Open

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

danburzo opened this issue Jul 23, 2023 · 0 comments
Assignees
Labels
Feature New feature or request

Comments

@danburzo
Copy link
Collaborator

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
@danburzo danburzo self-assigned this Jul 23, 2023
@danburzo danburzo added the Feature New feature or request label Jul 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant