Blends multiple colors to find a color between them.
The amt parameter specifies the amount to interpolate between the color stops which are colors at each amt value "location" with amt values that are between 2 color stops interpolating between them based on its relative distance to both.
The way that colors are interpolated depends on the current colorMode().
Ejemplos
Sintaxis
paletteLerp(colors_stops, amt)
Parámetros
colors_stops
[p5.Color, Number][]:
color stops to interpolate from
amt
Number:
number to use to interpolate relative to color stops
Returns
p5.Color: interpolated color.
This page is generated from the comments in src/color/creating_reading.js . Please feel free to edit it and submit a pull request!