Skip to content

Use real paper scribbles #30

@woutersf

Description

@woutersf

Hi,
Thanks for creating this. It really sparked the creativity for me and my kids. I could not resist thinking about adding the paper scribbels functionality to this.
(if this is not supposed to be a ticket, certainly close it and point me to the right direction.

I have created a fork: Paper sketch diffusion.
https://github.com/woutersf/paper-sketch-diffusion

The idea is to allow your input to also allow a picture of a paper sketch.

Therefor I added a button (not styled yet)
Screenshot 2023-03-01 at 13 50 09

Which then promps the camera permission:
Screenshot 2023-03-01 at 13 50 24

And you are allowed to take a picture of a sketch.
Screenshot 2023-03-01 at 13 51 17
I also transform the sketch to black and white and threshold it (black or white contrast) so that it is "scribblable" .

I then want this image data to flow into the scribble (see red arrow above), This is where I'm stuck now.
I would like to know how to flow the image data I have and not use the canvas that was hand drawn.
You will see in my code that I have no clue about React.
woutersf@14a5f47

You can easily try it out since you don't even need the replicate key to get this working.
Any help is much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions