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

    Function renderCPU

    • Dither on the CPU and paint with a palette. Works anywhere JavaScript runs: browsers, workers, Node. The number of tones is the palette's length.

      Parameters

      • lum: ArrayLike<number>
      • width: number
      • height: number
      • opts: RenderOptions = {}

      Returns RGBAImage