# textures

> SVG patterns for Data Visualization

Latest version **1.2.3** (published 2021-04-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install textures
pnpm add textures
yarn add textures
bun add textures
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2021-04-17 |
| First published | 2015-03-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 23.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6089 |
| Author | Riccardo Scalco |
| Maintainers | maxogden, riccardoscalco |
| Keywords | svg pattern, patterns, textures, d3, svg, dataviz, data visualisation, maps, visual |

## Links

- npm: https://www.npmjs.com/package/textures
- Repository: https://github.com/riccardoscalco/textures
- Issues: https://github.com/riccardoscalco/textures/issues
- npm.io page: https://npm.io/package/textures

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 1.2.3 (latest) — 2021-04-17
- 1.1.0-1 (next) — 2017-11-01
- 1.2.2 — 2019-08-05
- 1.2.1 — 2019-08-05
- 1.2.0 — 2017-11-01
- 1.1.0-0 — 2017-10-28
- 1.0.5 — 2017-03-09
- 1.0.4 — 2016-07-13
- 1.0.3 — 2015-03-26
- 1.0.2 — 2015-03-20
- 1.0.1 — 2015-03-18
- 1.0.0 — 2015-03-18

## README

# textures.js

Textures.js is a JavaScript library for creating SVG patterns.
Made on top of [**d3.js**](https://d3js.org/), it is designed for data visualization.

Read more on http://riccardoscalco.github.io/textures/.

## Install

```
npm install textures
```

## Usage

Import `textures.js` from NPM with:

```js
import textures from 'textures';
```

You can also use `textures.js` in your HTML page with a `<script>` tag by downloading `textures.js` to a local folder:

```html
<script src="path/to/textures.js"></script>
```

or by using the Unpkg CDN network:

```html
<script src="https://unpkg.com/textures@1.2.0/dist/textures.js"></script>
```

Then `textures.js` can be used alongside `d3` with:

```js
const svg = d3
  .select('#example')
  .append("svg");

const texture = textures
  .lines()
  .thicker();

svg.call(texture);

svg
  .append('circle')
  .style('fill', texture.url());
```

## License

MIT

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