Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    canvas-colorize-alphapublic

    HTML5 Canvas colorize-alpha

    api

    colorizeAlpha(
        // a canvas element with things drawn on it
        canvas,
        // a list of steps, assumed to be equidistant,
        // start at 0% and end at 100%, in [r, g, b] form.
        [[255, 0, 0], [255, 255, 0], [0, 255, 0], [0, 255, 255]]);

    install

    npm i canvas-colorize-alpha

    Downloadsweekly downloads

    5

    version

    0.0.0

    license

    BSD

    last publish

    collaborators

    • avatar