Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/steiza/postscript_fractals
Short PostScript programs to make fractals as vector graphics for CNC machines, laser cuters, vinyl cutters, etc
https://github.com/steiza/postscript_fractals
Last synced: about 1 month ago
JSON representation
Short PostScript programs to make fractals as vector graphics for CNC machines, laser cuters, vinyl cutters, etc
- Host: GitHub
- URL: https://github.com/steiza/postscript_fractals
- Owner: steiza
- Created: 2016-01-21T16:40:26.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2022-03-28T22:09:02.000Z (almost 3 years ago)
- Last Synced: 2024-10-13T21:11:54.454Z (3 months ago)
- Language: PostScript
- Size: 866 KB
- Stars: 31
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
PostScript Fractals
===================There have never been more consumer-accessible CNC-like machines:
- Laser cutters / engravers
- Vinyl cutters
- 3D printers
- CNC routers
- Plasma cutters (a bit of a stretch, but check your local `makerspace `_)Many of these machines work best with vector graphics, and there are plenty of vector graphic programs for drawing things manually. But what if you want to create something intricate and repetitive, like a fractal?
Enter `PostScript `_, a decades-old stack-based extra-hyphenated programming language that's perfect for defining recursive fractals.
For example, take clamshell.eps. If you change the last line to be::
500 1 DARK_TRAPAZOID
... and rendering it to a PDF (on \*nix anyways)::
ps2pdf clamshell.eps clamshell1.pdf
... you get a small fractal:
.. image:: http://raw.github.com/steiza/postscript_fractals/master/rendered/clamshell1.png
But if you crank up the recursion by changing the last line to be::
500 5 DARK_TRAPAZOID
... you get something much more complex:
.. image:: http://raw.github.com/steiza/postscript_fractals/master/rendered/clamshell.png
More correctly, these are actually `aperiodic tilings `_ there are built using `substitution rules `_, and `there are a lot of them `_.
.. image:: http://raw.github.com/steiza/postscript_fractals/master/rendered/canonical3.png
So download this repo, make some fractals, and put them on stuff!
.. image:: http://raw.github.com/steiza/postscript_fractals/master/rendered/closet.jpg