Skip to content

Instantly share code, notes, and snippets.

@behreajj
Last active June 25, 2017 23:18
Show Gist options
  • Save behreajj/c620ea2798b6d8a1fea6a39ed7e5c49d to your computer and use it in GitHub Desktop.
Save behreajj/c620ea2798b6d8a1fea6a39ed7e5c49d to your computer and use it in GitHub Desktop.
Color Gradients 1-3
for (int i = left; i <= right; ++i) {
stroke(lerpColor(red, blue, (i - left) / float(right - left)));
line(i, top, i, bottom);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment