Skip to content
This repository was archived by the owner on Dec 23, 2022. It is now read-only.

Conversation

Liamolucko
Copy link

This works using CanvasRenderingContext2D.putImageData. The main drawback of this approach is that a canvas can only have one kind of context, meaning that this will fail if a different kind has already been created, and will prevent different kinds being created afterwards. The first problem could be worked around by adding an implementation for all the different kinds of contexts, but this is good enough for an MVP.

This works using `CanvasRenderingContext2D.putImageData`.
The main drawback of this approach is that a canvas can only have one kind of context,
meaning that this will fail if a different kind has already been created,
and will prevent different kinds  being created afterwards.
The first problem could be worked around by adding an implementation for all the different kinds of contexts,
but this is good enough for an MVP.
@Liamolucko
Copy link
Author

@Osspial What's the status of this repo? It doesn't really seem to be maintained.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant