Socket
Book a DemoInstallSign in
Socket

gl-tile-map

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gl-tile-map

Creates a mip mapped texture atlas from a list of tiles and uploads it to WebGL

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

gl-tile-map

Generates a WebGL texture atlas for a tile map.

Install

npm install gl-tile-map

require("gl-tile-map")(gl, tiles[, pad])

Generates a tilemap as atexture object.

  • gl is a webgl context
  • tiles is a 5 dimensional ndarray of tiles.
  • pad is an optional flag that if set pads each tile by a factor of 1/2 along each dimension.

Returns A gl-texture2d object encoding the atlas

Credits

(c) 2013 Mikola Lysenko. MIT License

Keywords

tile

FAQs

Package last updated on 09 Jul 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts