flip-pixels

WebJar for flip-pixels

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

flip-pixels
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

flip-pixels
WebJar for flip-pixels
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/dy/flip-pixels

Download flip-pixels

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/flip-pixels/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>flip-pixels</artifactId>
    <version>1.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/flip-pixels/
implementation 'org.webjars.npm:flip-pixels:1.0.2'
// https://jarcasting.com/artifacts/org.webjars.npm/flip-pixels/
implementation ("org.webjars.npm:flip-pixels:1.0.2")
'org.webjars.npm:flip-pixels:jar:1.0.2'
<dependency org="org.webjars.npm" name="flip-pixels" rev="1.0.2">
  <artifact name="flip-pixels" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='flip-pixels', version='1.0.2')
)
libraryDependencies += "org.webjars.npm" % "flip-pixels" % "1.0.2"
[org.webjars.npm/flip-pixels "1.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Build Status

Flip pixels after gl.readTexture:

var flip = require('flip-pixels')

var w = gl.drawingBufferWidth;
var h = gl.drawingBufferHeight
var pixels = new Uint8Array(w * 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.

Versions

Version
1.0.2