• Deposits material in a filled disc, setting every cell within radius of (cx, cy) to materialId. This is the deposit complement of Carve.circle: identical rasterization, but writes the supplied material id instead of air.

    Cells exactly on the radius boundary are included. The bounding box is clipped to bitmap bounds. Non-positive and NaN radii are no-ops.

    Parameters

    • bitmap: ChunkedBitmap
    • cx: number
    • cy: number
    • radius: number
    • materialId: number

    Returns void

    (via setPixel) If materialId is not an integer in 0..255. The id is not validated against the bitmap's material registry; callers may use unregistered ids if they own their own renderer / lookup pipeline.