All Projects → ondras → Primitive.js

ondras / Primitive.js

Licence: mit
JS port of primitive.lol

Programming Languages

javascript
184084 projects - #8 most used programming language

primitive.js

A JavaScript re-creation of the primitive.lol application.

How does it look?

Check out the Masterpieces gallery for several cool samples. There is also a dedicated Electron-based port that works as a regular desktop application.

Try it now!

At a dedicated demo page

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
  2. npm install
  3. 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 but not used at all, as it does not currently bring any performance improvement. This might change in the future.

License

MIT

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].