gifshot
gifshot copied to clipboard
Support for sampling from Canvas Element?
So I've got this library for generating 3d geometries, and the readme is hella boring. I use a normal shader that just uses a geometry's xyz normal values as the fragment's rgb values. I'd love to be able to make animated gifs from the canvas, and use those in the readme, since they look better animated. One thing to note is that WebGLRenderingContext
's need to be created with the second optional argument to HTMLCanvasElement.prototype.getContext
being an object with the key/value pair of preserveDrawingBuffer: true
(vs CanvasRenderingContext2D
), otherwise you can't sample from them. More info
We will look into adding support for passing a canvas element!
:zap: :guitar: :zap:
+1
+1
+1
+1 :)