# @visx/pattern Inspired by: http://riccardoscalco.github.io/textures/ ## Example ```js import { AreaClosed } from '@visx/shape'; import { PatternLines } from '@visx/pattern'; const PatternArea = () => { return ( ); }; ``` ## The Definition Caveat Like gradients, patterns are "defined." When you put down a ``, it's putting a [``](https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Patterns) attribute in the SVG. It's often better to think of these as variable definitions rather than true DOM elements. When you use `fill="url('#pattern')"` you're referencing the pattern's id: `pattern`. ## Pre-Made Patterns ### `PatternsCircles` ![circles example](http://i.imgur.com/jd9YGJi.png) ```js ``` ### `PatternsHexagons` ![hexagon example](http://i.imgur.com/3EL1Lza.png) ```js ``` ### `PatternsLines` ![lines example](http://i.imgur.com/E3cTmLZ.png) ```js ``` ### `PatternsWaves` ![waves example](http://i.imgur.com/4fdwbhv.png) ```js ``` ## Installation ``` npm install --save @visx/pattern ```