# gl-white-texture

> creates a white 2x2 WebGL texture

Latest version **1.0.0** (published 2014-08-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install gl-white-texture
pnpm add gl-white-texture
yarn add gl-white-texture
bun add gl-white-texture
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2014-08-26 |
| First published | 2014-08-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Matt DesLauriers |
| Maintainers | mattdesl |
| Keywords | gl, stackgl, glsl, modules-gl, gl-modules, webgl, tex, texture, white, opaque, gl-texture2d, texture2d |

## Links

- npm: https://www.npmjs.com/package/gl-white-texture
- Repository: https://github.com/mattdesl/gl-white-texture
- Issues: https://github.com/mattdesl/gl-white-texture/issues
- npm.io page: https://npm.io/package/gl-white-texture

## Dependencies (2)

- [ndarray](https://npm.io/package/ndarray.md) ^1.0.15
- [gl-texture2d](https://npm.io/package/gl-texture2d.md) ^2.0.2

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 1.0.0 (latest) — 2014-08-26

## README

# gl-white-texture

[![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)

Creates an opaque white 2x2 texture. This is often used as an optimization when drawing colored and filled lines/rectangles alongside textured sprites, as it allows us to use the same shader.

```js
var tex = require('gl-white-texture')(gl)

//bind and draw that sucker
tex.bind()
```

## Usage

[![NPM](https://nodei.co/npm/gl-white-texture.png)](https://nodei.co/npm/gl-white-texture/)

### `tex = createWhiteTexture(gl)`

Creates and returns a new 2x2 RGBA texture using an unsigned byte array filled with `0xFF` bytes.

## License

MIT, see [LICENSE.md](http://github.com/mattdesl/gl-white-texture/blob/master/LICENSE.md) for details.

---
_Source: https://npm.io/package/gl-white-texture · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
