Skip to content

Instantly share code, notes, and snippets.

Created October 13, 2020 19:31
What would you like to do?
Base64Png Editor Apply Tweak
useEffect(() => {
const ctx = canvasRef.current?.getContext("2d")!;
ctx.filter = `invert(${invert}%)`;
ctx.drawImage(imageRef.current!, 0, 0);
}, [invert]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment