Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://ondras.github.io/primitive.js/
JS port of primitive.lol
https://ondras.github.io/primitive.js/
Last synced: about 2 months ago
JSON representation
JS port of primitive.lol
- Host: GitHub
- URL: https://ondras.github.io/primitive.js/
- Owner: ondras
- License: mit
- Created: 2016-11-23T10:38:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-26T09:31:35.000Z (over 4 years ago)
- Last Synced: 2024-07-05T14:53:46.004Z (3 months ago)
- Language: JavaScript
- Homepage: https://ondras.github.io/primitive.js/
- Size: 42 KB
- Stars: 776
- Watchers: 25
- Forks: 80
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
- awesome-web - primitive.js – drawing images with geometric primitives
README
# primitive.js
A JavaScript re-creation of the [primitive.lol](http://primitive.lol/) application.
## How does it look?
Check out the [Masterpieces](https://cielitolindo.de/albums/masterpieces/) gallery for several cool samples. There is also a dedicated [Electron-based port](https://github.com/cielito-lindo-productions/primitive.nextgen) that works as a regular desktop application.
## Try it now!
[At a dedicated demo page](https://ondras.github.io/primitive.js/)
## Building
Written in client-side JavaScript, uses Rollup for JS bundling and LESS for CSS pre-processing.
1. `git clone [email protected]:ondras/primitive.js.git && cd primitive.js`
1. `npm install`
1. `npm start`## About the algorithm
Most of the ideas are shared with the original app, described at https://github.com/fogleman/primitive/. Rasterization is done via HTML5 , which is very flexible but prohibits reasonable parallelization. Web Worker support is [available](js/src/workerPool.js) but not used at all, as it does not currently bring any performance improvement. This might change in the future.
## License
[MIT](license.txt)
## Contributing
There are no major missing features nor a roadmap. The UI needs some polishing w.r.t. UX. If you think your feature/bugfix/contribution might be worthwhile, please ask before diving into the code. Performance improvements (measurable) are welcome.