Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 

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

About

Generate a simple bellows folding pattern

Resources

Releases

No releases published

Packages

No packages published