Skip to content
This repository has been archived by the owner on Aug 6, 2019. It is now read-only.

color hook sets 'transparent' to alpha:1 (not transparent) #30

Open
amark opened this issue May 21, 2011 · 0 comments
Open

color hook sets 'transparent' to alpha:1 (not transparent) #30

amark opened this issue May 21, 2011 · 0 comments

Comments

@amark
Copy link

amark commented May 21, 2011

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 };

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant