npm

Need private packages and team management tools?Check out npm Orgs. »

flip-pixels

1.0.2 • Public • Published

Build Status

Flip pixels after gl.readTexture:

var flip = require('flip-pixels')
 
var w = gl.drawingBufferWidth;
var h = gl.drawingBufferHeight
var pixels = new Uint8Array(* h * 4);
gl.readPixels(0, 0, w, h, gl.RGBA, gl.UNSIGNED_BYTE, pixels);
 
flip(pixels, w, h)

Based on this question.

See also clip-pixels.

install

npm i flip-pixels

Downloadsweekly downloads

24,287

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability