0.1.1 • Published 5 years ago

printerboi v0.1.1

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

✨🖨 PRINTERBOI ✨🖨

Printerboi screencast

PrinterBoi is a system of modules to print WebGL textures.

Installation

npm i printerboi

Usage

import PrinterBoi from 'https://unpkg.com/printerboi@0.0.2/index.js';
/* or:
import PrinterBoi from 'printerboi';
   if you're using it from npm
*/

// ... set up your THREE canvas & stuff
let domTexture = new THREE.Texture(renderer.domElement)
let pb = new PrinterBoi(domTexture)

/* There are a couple things you can set on the print itself */
// The CSS page orientation, defaults to 'auto'
pb.orientation('landscape')
// The page margins, defaults to 'auto' ('auto' removes
pb.margin('0mm')
the date & time info)

pb.printPopup()
⚠️: This API is still very experimental & will soon go from Three to taking in a
WebGL texture so it's compatible with any, or no, 3D web framework!

Miscellaneous

Gameboy 3D Model

0.1.1

5 years ago

0.1.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago