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

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

@amark

Description

@amark

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions