{"_id":"geopattern","_rev":"19-5ea05ff5a3f0a0ab421a0a5e46a19458","name":"geopattern","description":"Generate beautiful SVG patterns","dist-tags":{"latest":"1.2.3"},"versions":{"0.0.1":{"name":"geopattern","version":"0.0.1","description":"Generate beautiful SVG patterns","keywords":["svg","pattern","geometric","background"],"homepage":"https://github.com/btmills/geopattern","bugs":{"url":"https://github.com/btmills/geopattern/issues"},"license":"MIT","contributors":[{"name":"Brandon Mills"},{"name":"Jason Long"}],"files":["README.md","LICENSE","package.json","gulpfile.js","geopattern.js","lib/pattern.js","lib/svg.js"],"main":"geopattern.js","repository":{"type":"git","url":"https://github.com/btmills/geopattern"},"dependencies":{"color":"~0.5.0","extend":"~1.2.1"},"devDependencies":{"browserify":"~3.30.1","gulp-util":"~2.2.14","gulp":"~3.5.2","gulp-browserify":"~0.4.6","gulp-eslint":"~0.1.4","gulp-uglify":"~0.2.1","gulp-concat":"^2.1.7"},"_id":"geopattern@0.0.1","dist":{"shasum":"e783711f51b520aba6659042e0357bca66ffc26e","tarball":"https://registry.npmjs.org/geopattern/-/geopattern-0.0.1.tgz","integrity":"sha512-PKyN+qS5vi3aY91nmp5+cNQ6TucrQWl61y4HhHDKWRvzE4nepzDvu+XuBL1kIABXMmD1oC/dPecoI6kDCLnxZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDhSG2LuFqGknmY7QjxJexupNzlKLKZ9TspUj9Gak7A2AiEAz9KU66kAcDb3UZkYcp21nlrT3K4ee6a/ltBxdxblfTQ="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"btmills","email":"mills.brandont+npm@gmail.com"},"maintainers":[{"name":"btmills","email":"mills.brandont+npm@gmail.com"}]},"1.0.0":{"name":"geopattern","version":"1.0.0","description":"Generate beautiful SVG patterns","keywords":["svg","pattern","geometric","background"],"homepage":"http://btmills.github.io/geopattern/geopattern.html","bugs":{"url":"https://github.com/btmills/geopattern/issues"},"license":"MIT","contributors":[{"name":"Brandon Mills"},{"name":"Jason Long"}],"files":["README.md","LICENSE","package.json","gulpfile.js","geopattern.js","lib/pattern.js","lib/svg.js"],"main":"geopattern.js","repository":{"type":"git","url":"https://github.com/btmills/geopattern"},"dependencies":{"extend":"~1.2.1"},"devDependencies":{"browserify":"~3.30.1","gulp":"~3.5.2","gulp-browserify":"~0.4.6","gulp-concat":"^2.1.7","gulp-eslint":"~0.1.4","gulp-plumber":"^0.5.6","gulp-uglify":"~0.2.1","gulp-util":"~2.2.14"},"_id":"geopattern@1.0.0","dist":{"shasum":"356edf20ca63145222ef565ae60771a6b8f384d0","tarball":"https://registry.npmjs.org/geopattern/-/geopattern-1.0.0.tgz","integrity":"sha512-ys5V1J3QYAo/8t9CGn2aDvi26PNxwmeJX7onlNL1qG10cvLUbhyWC0+UDkkzhLnyd+mfp9HC1g/JnRin/uKUew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCyD+pHp4vkM+58QzKzUkXCmcxiPT0KdKNePOrcb279DQIhAMg/AXrxzmL7vkUN9TqzFNuVjK+GIegxJWBaQfX1k72F"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"btmills","email":"mills.brandont+npm@gmail.com"},"maintainers":[{"name":"btmills","email":"mills.brandont+npm@gmail.com"}]},"1.0.1":{"name":"geopattern","version":"1.0.1","description":"Generate beautiful SVG patterns","keywords":["svg","pattern","geometric","background"],"homepage":"http://btmills.github.io/geopattern/geopattern.html","bugs":{"url":"https://github.com/btmills/geopattern/issues"},"license":"MIT","contributors":[{"name":"Brandon Mills"},{"name":"Jason Long"}],"main":"geopattern.js","repository":{"type":"git","url":"https://github.com/btmills/geopattern"},"dependencies":{"extend":"~1.2.1"},"devDependencies":{"browserify":"~3.30.1","gulp":"~3.5.2","gulp-browserify":"~0.4.6","gulp-concat":"^2.1.7","gulp-eslint":"~0.1.4","gulp-plumber":"^0.5.6","gulp-uglify":"~0.2.1","gulp-util":"~2.2.14"},"_id":"geopattern@1.0.1","dist":{"shasum":"68ab87f58d99efed64ffddcf50a78e8a581f77c8","tarball":"https://registry.npmjs.org/geopattern/-/geopattern-1.0.1.tgz","integrity":"sha512-hgFEP8gpTilOXHdHMKMdeAlaq8vTaDuCVUVoHMpv2jKVLnKCk6+BQGkkQarNQDM7w6/PeYdORaKTEiDCUyj6fQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTR26NGYmNDk3JaMK3KlPVWH4Jt9LfxK5us7Hm0yP/YQIgVTUKGEXDQJLtd4xksEZRixS9xBkRWrVz/592EEB3i00="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"btmills","email":"mills.brandont+npm@gmail.com"},"maintainers":[{"name":"btmills","email":"mills.brandont+npm@gmail.com"}]},"1.2.0":{"name":"geopattern","version":"1.2.0","description":"Generate beautiful SVG patterns","keywords":["svg","pattern","geometric","background"],"homepage":"http://btmills.github.io/geopattern/geopattern.html","bugs":{"url":"https://github.com/btmills/geopattern/issues"},"license":"MIT","contributors":[{"name":"Brandon Mills"},{"name":"Jason Long"}],"main":"geopattern.js","repository":{"type":"git","url":"https://github.com/btmills/geopattern"},"dependencies":{"extend":"~1.2.1"},"devDependencies":{"browserify":"~3.30.1","gulp":"~3.5.2","gulp-browserify":"~0.4.6","gulp-concat":"^2.1.7","gulp-eslint":"~0.1.4","gulp-plumber":"^0.5.6","gulp-uglify":"~0.2.1","gulp-util":"~2.2.14"},"_id":"geopattern@1.2.0","dist":{"shasum":"60d248af490791e8a146badd09745d48171c0c19","tarball":"https://registry.npmjs.org/geopattern/-/geopattern-1.2.0.tgz","integrity":"sha512-5jIIwfd1plCZmJp1wM45RD/69DtwSiAxGJGIc0+4UwPSQVi/zW49aR7wDi7CgodeJDvAJgocXttFv4OHW0DV1g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDoBN3GFk3TEBQY/Oq+6Dn2vvQfOYkDGINgt6XTqbFQ+AIhALMuE9cE4ZTLRpjOpJGUYOy89b6PVgxQ7xmUg7U7KKLQ"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"btmills","email":"mills.brandont+npm@gmail.com"},"maintainers":[{"name":"btmills","email":"mills.brandont+npm@gmail.com"}]},"1.2.1":{"name":"geopattern","version":"1.2.1","description":"Generate beautiful SVG patterns","keywords":["svg","pattern","geometric","background"],"homepage":"http://btmills.github.io/geopattern/geopattern.html","bugs":{"url":"https://github.com/btmills/geopattern/issues"},"license":"MIT","contributors":[{"name":"Brandon Mills"},{"name":"Jason Long"}],"main":"geopattern.js","repository":{"type":"git","url":"https://github.com/btmills/geopattern"},"dependencies":{"extend":"~1.2.1"},"devDependencies":{"browserify":"~3.30.1","gulp":"~3.5.2","gulp-browserify":"~0.4.6","gulp-concat":"^2.1.7","gulp-eslint":"~0.1.4","gulp-plumber":"^0.5.6","gulp-uglify":"~0.2.1","gulp-util":"~2.2.14"},"_id":"geopattern@1.2.1","dist":{"shasum":"7bdbb68ebcfd834aea5e356cece558c85aaca4d6","tarball":"https://registry.npmjs.org/geopattern/-/geopattern-1.2.1.tgz","integrity":"sha512-7a+uEzLeN7FhV2jnoIYONrsJjP2rHHLBHM4HfgFGxribEOX4L9/YQLTxtc2CVaDGKYb3B8Lo2WVPnEbndJtDGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB42co95WqQq/eVMCTJI3Ttzt00IOQ0jH6I2xJGitikvAiEA7rcVaTXF1EJ5t95rY3T51nNNU8GA0LFeWA4uxWjE9bo="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"btmills","email":"mills.brandont+npm@gmail.com"},"maintainers":[{"name":"btmills","email":"mills.brandont+npm@gmail.com"}]},"1.2.2":{"name":"geopattern","version":"1.2.2","description":"Generate beautiful SVG patterns","keywords":["svg","pattern","geometric","background"],"homepage":"http://btmills.github.io/geopattern/geopattern.html","bugs":{"url":"https://github.com/btmills/geopattern/issues"},"license":"MIT","contributors":[{"name":"Brandon Mills"},{"name":"Jason Long"}],"main":"geopattern.js","repository":{"type":"git","url":"https://github.com/btmills/geopattern"},"dependencies":{"extend":"~1.2.1"},"devDependencies":{"browserify":"~3.30.1","gulp":"~3.5.2","gulp-browserify":"~0.4.6","gulp-concat":"^2.1.7","gulp-eslint":"~0.1.4","gulp-plumber":"^0.5.6","gulp-uglify":"~0.2.1","gulp-util":"~2.2.14"},"gitHead":"a56e25137e04251615861142bb6e31b89c814ce5","_id":"geopattern@1.2.2","scripts":{},"_shasum":"0abc5517cae2258129f94572815bd90aa4094375","_from":".","_npmVersion":"2.1.2","_nodeVersion":"0.10.32","_npmUser":{"name":"btmills","email":"mills.brandont@gmail.com"},"maintainers":[{"name":"btmills","email":"mills.brandont+npm@gmail.com"}],"dist":{"shasum":"0abc5517cae2258129f94572815bd90aa4094375","tarball":"https://registry.npmjs.org/geopattern/-/geopattern-1.2.2.tgz","integrity":"sha512-lOc7Nt8ukUtHUlPfmBDzNdf/4dOwqTsXZovCAuzgHUodksCe0Jw47k5MXKvcsgGOiITyMIGQh3Gsgg71nckVyQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEuVEphtRH9h+yyvwPa/8OxdFNUzHyFIfF/3o1ZH/1SsAiAREasKYTGxvr5SxUzjioeCSk9bZsPDuL+U1UqTZ1ZhYA=="}]}},"1.2.3":{"name":"geopattern","version":"1.2.3","description":"Generate beautiful SVG patterns","keywords":["svg","pattern","geometric","background"],"homepage":"http://btmills.github.io/geopattern/geopattern.html","bugs":{"url":"https://github.com/btmills/geopattern/issues"},"license":"MIT","contributors":[{"name":"Brandon Mills"},{"name":"Jason Long"}],"main":"geopattern.js","repository":{"type":"git","url":"https://github.com/btmills/geopattern"},"dependencies":{"extend":"~1.2.1"},"devDependencies":{"browserify":"~3.30.1","gulp":"~3.5.2","gulp-browserify":"~0.4.6","gulp-concat":"^2.1.7","gulp-eslint":"~0.1.4","gulp-plumber":"^0.5.6","gulp-uglify":"~0.2.1","gulp-util":"~2.2.14"},"gitHead":"37590d38b9346391a4e658fc5385074daff38dbc","_id":"geopattern@1.2.3","scripts":{},"_shasum":"de96602e46dba9095ca5774bfb3b36308f7e63fe","_from":".","_npmVersion":"2.1.9","_nodeVersion":"0.10.33","_npmUser":{"name":"btmills","email":"mills.brandont@gmail.com"},"maintainers":[{"name":"btmills","email":"mills.brandont+npm@gmail.com"}],"dist":{"shasum":"de96602e46dba9095ca5774bfb3b36308f7e63fe","tarball":"https://registry.npmjs.org/geopattern/-/geopattern-1.2.3.tgz","integrity":"sha512-UzrR9D0xUrXx71ROZTKbTg1isWdcfcYAXsJrqtvhDkQV2JCsRyqws6TuqUdkBKncg5CPevb0vyXXUJrZpjGFXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF0YxONHgbA/mgTZKPDKyAQP3grZbQ3B2lEyi9B661SZAiB3JMLCaUbSWVErzkW7o5bqXjDBujfQdocwsQ8Yq27h6Q=="}]}}},"readme":"# GeoPattern\n\nThis is a JavaScript port of [jasonlong/geo_pattern](https://github.com/jasonlong/geo_pattern) with a [live preview page](http://btmills.github.io/geopattern/geopattern.html) and is derived from the background generator originally used for [GitHub Guides](http://guides.github.com/).\n\n## Usage\n\n### Web\n\nInclude the [minified script](js/geopattern.min.js). jQuery is optional.\n\n```HTML\n<script src=\"js/jquery.min.js\"></script> <!-- optional -->\n<script src=\"js/geopattern.min.js\"></script>\n```\n\nUse either the `GeoPattern` browser global or the jQuery plugin:\n\n```JavaScript\n// Use the global...\nvar pattern = GeoPattern.generate('GitHub');\n$('#geopattern').css('background-image', pattern.toDataUrl());\n\n// ...or the plugin\n$('#geopattern').geopattern('GitHub');\n```\n\nFor backwards compatibility with the script on the [Guides](http://guides.github.com/), the source hash for generation can be supplied with a `data-title-sha` attribute on the element. If the attribute exists, the generator will ignore the input string and use the supplied hash.\n\nView [`geopattern.html`](geopattern.html) for a complete example.\n\n### Node.js\n\n```bash\nnpm install geopattern\n```\n\nAfter requiring `geopattern`, the API is identical to the browser version, minus the jQuery plugin.\n\n```js\nvar GeoPattern = require('geopattern');\nvar pattern = GeoPattern.generate('GitHub');\npattern.toDataUrl(); // url(\"data:image/svg+xml;...\n```\n\n### API\n\n#### GeoPattern.generate(string, options)\n\nReturns a newly-generated, tiling SVG Pattern.\n\n- `string` Will be hashed using the SHA1 algorithm, and the resulting hash will be used as the seed for generation.\n\n- `options.color` Specify an exact background color. This is a CSS hexadecimal color value.\n\n- `options.baseColor` Controls the relative background color of the generated image. The color is not identical to that used in the pattern because the hue is rotated by the generator. This is a CSS hexadecimal color value, which defaults to `#933c3c`.\n\n- `options.generator` Determines the pattern. [All of the original patterns](https://github.com/jasonlong/geo_pattern#available-patterns) are available in this port, and their names are camelCased.\n\n#### Pattern.color\n\nGets the pattern's background color as a hexadecimal string.\n\n```js\nGeoPattern.generate('GitHub').color // => \"#455e8a\"\n```\n\n#### Pattern.toString() and Pattern.toSvg()\n\nGets the SVG string representing the pattern.\n\n#### Pattern.toBase64()\n\nGets the SVG as a Base64-encoded string.\n\n#### Pattern.toDataUri()\n\nGets the pattern as a data URI, i.e. `data:image/svg+xml;base64,PHN2ZyB...`.\n\n#### Pattern.toDataUrl()\n\nGets the pattern as a data URL suitable for use as a CSS `background-image`, i.e. `url(\"data:image/svg+xml;base64,PHN2ZyB...\")`.\n\n## License\n\nLicensed under the terms of the MIT License, the full text of which can be read in [LICENSE](LICENSE).\n","maintainers":[{"name":"btmills","email":"mills.brandont+npm@gmail.com"}],"time":{"modified":"2022-06-18T07:40:46.138Z","created":"2014-02-26T02:30:53.057Z","0.0.1":"2014-02-26T02:30:53.057Z","1.0.0":"2014-02-28T06:27:57.009Z","1.0.1":"2014-02-28T06:44:44.153Z","1.2.0":"2014-03-06T20:13:48.805Z","1.2.1":"2014-03-10T16:53:40.327Z","1.2.2":"2014-10-30T03:18:30.779Z","1.2.3":"2014-12-03T03:29:27.571Z"},"homepage":"http://btmills.github.io/geopattern/geopattern.html","keywords":["svg","pattern","geometric","background"],"repository":{"type":"git","url":"https://github.com/btmills/geopattern"},"contributors":[{"name":"Brandon Mills"},{"name":"Jason Long"}],"bugs":{"url":"https://github.com/btmills/geopattern/issues"},"license":"MIT","readmeFilename":"README.md","users":{"filipve":true,"alexcs":true,"xfloops":true}}