-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Allow a Canvas as an argument in addition to an Image #250
Comments
That is true. I am currently working on a big PR, so I could add that as an option... What would you think the API should look like? I can think of three reasonable options:
|
I think 1 is clear enough, 3 is reasonable if you want to avoid 1. |
@alexeyr-ci I have implemented this, it is available in my npm package, run |
@janishutz I was curious to try out your fork that includes canvas support, but I am unable to figure out how it works. Am I missing something, or did I misunderstanding that you implemented support from directly providing a canvas element? Thanks for your help :) |
I might have forgotten about that. I was pretty sure I did. I will try to think about updating it tomorrow. Thanks for bringing that up. |
@janishutz Hehe, can happen 😊 I'll keep an eye out if you update it soon, but will also appreciate if you ping me here when you do! |
@walmink sorry for the long lead time. It should work now. I will push to NPM rq too, so you can also pull from there. If you find issues with it, simply open an issue on my repo |
In my use-case I already have a
Canvas
and want to find its dominant colors. It doesn't make much sense to convert it to an image and then draw that image on a canvas.The text was updated successfully, but these errors were encountered: