How to use the @jscad/img-utils.writeContextToFile function in @jscad/img-utils

To help you get started, we’ve selected a few @jscad/img-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jscad / OpenJSCAD.org / packages / utils / regl-renderer / demo-cli.js View on Github external
{
      visuals: {
        drawCmd: 'drawAxis',
        show: true
      }
    },
    ...solids
  ]
}

// prepare
const render = prepareRender(options)
// do the actual render
render(options)
// output to file
writeContextToFile(gl, width, height, 4, './test.png')

@jscad/img-utils

Image Utilities for JSCAD

MIT
Latest version published 3 years ago

Package Health Score

70 / 100
Full package analysis

Popular @jscad/img-utils functions