-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in 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! |
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: