# three-text2d

> Render texture from canvas into THREE's Mesh or Sprite.

Latest version **0.6.0** (published 2020-01-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install three-text2d
pnpm add three-text2d
yarn add three-text2d
bun add three-text2d
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.0 |
| Published | 2020-01-15 |
| First published | 2016-01-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 53.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 254 |
| Author | Endel Dreyer |
| Maintainers | endel |
| Keywords | three.js, text, canvas, font |

## Links

- npm: https://www.npmjs.com/package/three-text2d
- Repository: https://github.com/gamestdio/three-text2d
- Homepage: https://github.com/gamestdio/three-text2d#readme
- Issues: https://github.com/gamestdio/three-text2d/issues
- npm.io page: https://npm.io/package/three-text2d

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 0.6.0 (latest) — 2020-01-15
- 0.5.3 — 2019-07-19
- 0.5.2 — 2019-06-02
- 0.5.1 — 2019-05-30
- 0.5.0 — 2019-01-20
- 0.4.1 — 2018-04-15
- 0.3.4 — 2017-04-26
- 0.3.3 — 2017-04-07
- 0.3.2 — 2017-02-17
- 0.3.1 — 2017-02-17
- 0.3.0 — 2016-08-14
- 0.3.0-rc2 — 2016-08-14
- 0.3.0-rc1 — 2016-08-14
- 0.2.3-rc1 — 2016-07-05
- 0.2.2 — 2016-01-22
- … 4 more at https://npm.io/package/three-text2d/versions

## README

three-text2d
===

Render texture from canvas into THREE's Mesh or Sprite.

Usage
---

**Mesh**

```javascript
import { MeshText2D, textAlign } from 'three-text2d'

var text = new MeshText2D("RIGHT", { align: textAlign.right, font: '30px Arial', fillStyle: '#000000', antialias: true })
scene.add(text)
```

**Sprite**

```javascript
import { SpriteText2D, textAlign } from 'three-text2d'

var sprite = new SpriteText2D("SPRITE", { align: textAlign.center,  font: '40px Arial', fillStyle: '#000000' , antialias: false })
scene.add(sprite)
```

License
---

MIT

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