plate-engine - v0.1.0
    Preparing search index...

    Function imageToLuminance

    • Draw an image into a width × height luminance buffer (browsers and workers with OffscreenCanvas). cover crops to fill; contain fits the whole image inside a 5% margin that prints as paper. With curve: true the engravingCurve is applied to the covered cells, as on the site.

      Parameters

      • img: DrawableImage
      • width: number
      • height: number
      • __namedParameters: { curve?: boolean; fit?: Fit } = {}

      Returns Float32Array