Skip to content
Generate a simple bellows folding pattern
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
example
src
.gitignore
.npmignore
README.md
package-lock.json
package.json

README.md

TRY OUT DEMO

Works in your browser

bellows

Example

const bellows = require('bellows')

bellows([options]) ⏏

Generate bellows pattern for cutting and folding.

Kind: Exported function
Typicalname:bellows:

Param Type Description
[options] Object Bellows configuration options
[options.dpi] Integer DPI of the image
[options.pageW] Integer Page width in pixels
[options.pageH] Integer Page height in pixels
[options.frontIW] Integer Front inner width of bellows in pixels
[options.frontOW] Integer Front outer width of bellows in pixels
[options.frontIH] Integer Front inner height of bellows in pixels
[options.frontOH] Integer Front outer height of bellows in pixels
[options.backIW] Integer Back inner width of bellows in pixels
[options.backOW] Integer Back outer width of bellows in pixels
[options.backIH] Integer Back inner height of bellows in pixels
[options.backOH] Integer Back outer height of bellows in pixels
[options.maxLength] Integer Maximum length of bellows in pixels
[options.align] Integer Vertical alignment adjustment in pixels
[options.parts] Integer Number of parts to split pattern into: 1, 2, or 4
[options.key] Boolean Print key on page
[options.overlap] Boolean Add overlapping flap between parts returns {String} Base64 encoded png data

Example

const b = bellows({ parts : 2 })
console.log(b)

bellows~IN

Try it out in the browser.

Install (node.js)

First, install dependencies required by node-canvas by following the install instructions for your OS.

git clone https://github.com/sixteenmillimeter/bellows.git
cd bellows
npm install

Kind: inner constant of bellows

You can’t perform that action at this time.