gifshot icon indicating copy to clipboard operation
gifshot copied to clipboard

Support for sampling from Canvas Element?

Open nickdesaulniers opened this issue 10 years ago • 6 comments

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

nickdesaulniers avatar Oct 05 '14 06:10 nickdesaulniers

We will look into adding support for passing a canvas element!

gfranko avatar Oct 05 '14 17:10 gfranko

:zap: :guitar: :zap:

nickdesaulniers avatar Oct 05 '14 20:10 nickdesaulniers

+1

zischwartz avatar Oct 05 '14 22:10 zischwartz

+1

banada avatar Feb 05 '15 14:02 banada

+1

neekers avatar Mar 01 '16 04:03 neekers

+1 :)

farisj avatar Jan 23 '18 18:01 farisj