Grx.put_scanline

function put_scanline(x1: Number(gint), x2: Number(gint), y: Number(gint), scan_line: Array(Grx.Color), op: Grx.Color): void {
    // Gjs wrapper for grx_put_scanline()
}
  

Writes @scan_data to the current context using the op operation.

Data values in @scan_data must fit #GRX_COLOR_VALUE_MASK otherwise the results are implementation dependent. So you can't supply operation code with the pixel data!

x1

the starting X coordinate

x2

the ending X coordinate

y

the Y coordinate

scan_line

the data to write

op

the color operation