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.
Notice any errors or typos? Please let us know. Please feel free to edit src/color/creating_reading.js and open a pull request!