Taos API Reference
    Preparing search index...

    Function computeSdf

    • Signed-distance field of an alpha-coverage bitmap (width×height, values 0..1), encoded to 0..255 with 128 ≈ the glyph edge and radius controlling the spread. Inside the glyph reads above 0.5 (normalized), outside below — matching the shader's smoothstep(0.5, …).

      Parameters

      • alpha: Float32Array
      • width: number
      • height: number
      • radius: number

      Returns Uint8Array