• Stars
    star
    6,033
  • Rank 6,672 (Top 0.2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 10 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Textures.js is a JavaScript library for creating SVG patterns

textures.js

Textures.js is a JavaScript library for creating SVG patterns. Made on top of d3.js, 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:

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:

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

or by using the Unpkg CDN network:

<script src="https://unpkg.com/[email protected]/dist/textures.js"></script>

Then textures.js can be used alongside d3 with:

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

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

svg.call(texture);

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

License

MIT

More Repositories

1

Pykov

Pykov is a Python module on finite regular Markov chains.
Python
425
star
2

crayon

Crayon.css is a list of css variables linking color names to hex values.
CSS
406
star
3

gridmap

An attempt to make a dot grid map with d3.js.
CoffeeScript
60
star
4

glsl-pcg-prng

Glsl implementation of the PCG algorithm for the generation of random numbers.
GLSL
12
star
5

riccardoscalco.github.io

My personal website.
HTML
10
star
6

archlinux-notes

Some notes from my daily arch.
4
star
7

wiv

WIV is a Web Image Viewer.
HTML
4
star
8

stardust

Stardust is a linkblog template powered by Meteor.
CoffeeScript
4
star
9

glsl-simple-alpha-compositing

GLSL implementation of the simple alpha compositing function.
GLSL
3
star
10

glsl-rodrigues-rotation

GLSL implementation of the Rodrigues's rotation formula.
GLSL
3
star
11

glsl-tiling

Utility function for the tessellation of the [0, 1] plane.
GLSL
3
star
12

Internet-bill-of-rights

Bozza di Internet bill of rights, ora tocca ai cittadini migliorarla.
2
star
13

regular-polygons

Vertices coordinates of regular polygons.
JavaScript
1
star
14

svg-template

Outset configuration for a svg project with canvas-sketch.
JavaScript
1
star
15

flubud.js

Influenza virus analysis performed on local fasta files.
JavaScript
1
star
16

promise-json-file-reader

Read and parse a File Object with mimetype application/json in browser.
JavaScript
1
star
17

populationDensityVsVoterTurnout

Data visualization project.
1
star
18

glsl-pcg-example

Example of use of the glsl-pcg-prng npm module.
JavaScript
1
star
19

FluBud

Flubud calculates the Rohlin distance between alphabetical strings, according to a certain procedure of partitioning.
Haskell
1
star