Skip to content

Instantly share code, notes, and snippets.

@dcbarans
Created April 13, 2010 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcbarans/364710 to your computer and use it in GitHub Desktop.
Save dcbarans/364710 to your computer and use it in GitHub Desktop.
else if (typeof aValue1 === "number") {
// Grayscale
if (aValue1 <= redRange && aValue1 >= 0) {
switch(curColorMode) {
case p.RGB: aColor = p.color(aValue1, aValue1, aValue1, opacityRange); break;
case p.HSB: aColor = p.color(0, 0, (aValue1 / redRange) * blueRange, opacityRange); break;
}
}
// Color int
else if (aValue1) {
aColor = aValue1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment