< Home

sixteenmillimeter.com

free and open-source tools for analog filmmaking

New! Track auctions and listings of film and equipment

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