blendColor(col1, col2, BLEND) ?
in
Programming Questions
•
2 years ago
A simple question about using BLEND in blendColor()
I tried to highlight (slightly brighten) a color by doing this:
color cLow = col;
color cHigh = blendColor(col, color(255), BLEND);
color cHigh = blendColor(col, color(255), BLEND);
and I get:
cLow = 100, 150, 200
cHigh = 254, 254, 254
which is too much of a highlight.
The reference says: BLEND - linear interpolation of colours: C = A*factor + B
Where do I put in the factor?
Should I do something like cHigh = blendColor(0.8*col, 0.2*color(255), BLEND); ?
Tried that but doesn't work.
1