Open amark opened 13 years ago
inside color.js
css hook:
if (!value.alpha) { // returns true if value.alpha == 0 value.alpha = 1; // making it not transparent. }
should be
if (!value.hasOwnProperty('alpha')) { value.alpha = 1; }
ADDITIONALLY: colornames.transparent = { r:-1, g:-1, b:-1 }; should be colornames.transparent = { r:-1, g:-1, b:-1, alpha:0 };
inside color.js
css hook:
if (!value.alpha) { // returns true if value.alpha == 0 value.alpha = 1; // making it not transparent. }
should be
if (!value.hasOwnProperty('alpha')) { value.alpha = 1; }
ADDITIONALLY: colornames.transparent = { r:-1, g:-1, b:-1 }; should be colornames.transparent = { r:-1, g:-1, b:-1, alpha:0 };