let cp = new CreasePattern().fishBase()

This is a javascript library for creating origami crease patterns.


Origami crease patterns leverage mathematical graphs. Crease lines are the graph's edges defined by their endpoints or edge nodes.

More accurately, the graph is a planar graph, the crease lines exist on the Euclidean plane using the familiar X and Y coordinate system.


The aim of this library is for origami designs to be created entirely in code, making every component accessible and available to be sculpted. The library includes tools ranging from traditional geometry to origami-specific operations.


This is open source

These docs make heavy use of paper.js, d3.js, and p5.js. Thank you to their developers.

This libary is available under the MIT open source license.

This library is under construction