Skip to content

Canvas is not clearing, generative images are overlapping #111

Description

@Jubakee

I'm having a problem where the output images are on top of each other.
For Example:
First generated image is wearing a black hat.
Second generated image is generated with no hat but the black hat from image one is still showing.

I have tried : ctx.clearRect(0, 0, canvas.width, canvas.height); but have had no luck as I'm not sure where it has to go.

I have been following the tutorial on youtube Code generative art for NFT in node.js .

Thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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