printerboi

0.1.1 • Public • Published

🖨 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

Readme

Keywords

none

Package Sidebar

Install

npm i printerboi

Weekly Downloads

6

Version

0.1.1

License

ISC

Unpacked Size

2.72 MB

Total Files

29

Last publish

Collaborators

  • cwervo