├── LICENSE ├── README.md ├── img ├── add.png ├── burgessshale.png ├── clear.png ├── darkknight.png ├── delete.png ├── drawing.png ├── favicon.gif ├── gh.png ├── habitrail.png ├── hide.png ├── lilypad.png ├── link.png ├── logo.png ├── open.png ├── pufferfish.png ├── reset.png ├── restart.png ├── rotate.png ├── truelove.png ├── tubular.png ├── zoomIn.png └── zoomOut.png ├── index.html ├── sgn.css └── sgn.js /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 SeedCode 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Spirographⁿ 2 | Based on the classic Spirograph toy. 3 | 4 | [Visit Spirographⁿ at SeedCode](https://seedcode.com/SpirographN/sgn.html) 5 | 6 | A Javascript drawing app, using canvas, where you can add/nest *n* number of gears (rotors) leading to endless possibilities of complex shapes and patterns. 7 | 8 | Unfortunately, the canvas line rendering on Safari is not precise enough to get all the details in the more complex shapes. Chrome gives the best results. 9 | 10 | ## Spirographⁿ in action 11 | 12 | [](img/drawing.png) 13 | 14 | ## Sample Drawings Created with Spirographⁿ 15 | 16 | [](img/truelove.png) 17 | [https://seedcode.com/SpirographN/sgn.html?pre=true%20love](https://seedcode.com/SpirographN/sgn.html?pre=true%20love) 18 | [](img/lilypad.png) 19 | [https://seedcode.com/SpirographN/sgn.html?pre=lily%20pad](https://seedcode.com/SpirographN/sgn.html?pre=lily%20pad) 20 | [](img/habitrail.png) 21 | [https://seedcode.com/SpirographN/sgn.html?pre=habitrail](https://seedcode.com/SpirographN/sgn.html?pre=habitrail) 22 | [](img/pufferfish.png) 23 | [https://seedcode.com/SpirographN/sgn.html?pre=pufferfish](https://seedcode.com/SpirographN/sgn.html?pre=pufferfish) 24 | [](img/tubular.png) 25 | [https://seedcode.com/SpirographN/sgn.html?pre=tubular](https://seedcode.com/SpirographN/sgn.html?pre=tubular) 26 | [](img/burgessshale.png) 27 | [https://seedcode.com/SpirographN/sgn.html?pre=burgess%20shale](https://seedcode.com/SpirographN/sgn.html?pre=burgess%20shale) 28 | 29 | 30 | -------------------------------------------------------------------------------- /img/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/add.png -------------------------------------------------------------------------------- /img/burgessshale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/burgessshale.png -------------------------------------------------------------------------------- /img/clear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/clear.png -------------------------------------------------------------------------------- /img/darkknight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/darkknight.png -------------------------------------------------------------------------------- /img/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/delete.png -------------------------------------------------------------------------------- /img/drawing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/drawing.png -------------------------------------------------------------------------------- /img/favicon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/favicon.gif -------------------------------------------------------------------------------- /img/gh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/gh.png -------------------------------------------------------------------------------- /img/habitrail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/habitrail.png -------------------------------------------------------------------------------- /img/hide.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/hide.png -------------------------------------------------------------------------------- /img/lilypad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/lilypad.png -------------------------------------------------------------------------------- /img/link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/link.png -------------------------------------------------------------------------------- /img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/logo.png -------------------------------------------------------------------------------- /img/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/open.png -------------------------------------------------------------------------------- /img/pufferfish.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/pufferfish.png -------------------------------------------------------------------------------- /img/reset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/reset.png -------------------------------------------------------------------------------- /img/restart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/restart.png -------------------------------------------------------------------------------- /img/rotate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/rotate.png -------------------------------------------------------------------------------- /img/truelove.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/truelove.png -------------------------------------------------------------------------------- /img/tubular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/tubular.png -------------------------------------------------------------------------------- /img/zoomIn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/zoomIn.png -------------------------------------------------------------------------------- /img/zoomOut.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/seedcode/SpirographN/a197359a26b9b75bb44960f50bbb601be180a307/img/zoomOut.png -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |