Skip to content

Coloring canvas pixels using other than this.color #46

Open
@RawanMoukalled

Description

@RawanMoukalled

In the demo, coloring a canvas is done using this.color(r,g,b,a) for each individual pixel.
First, something like var i=0, and then in the kernel function doing this.color(0,i,0,1); i++; gives errors.
Is the only way possible to style a pixel is with fixed numeric values? Can we use variables or equate pixels to other pixels from the browser for example?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions