Grx.fast_draw_hline

function fast_draw_hline(x1: Number(gint), x2: Number(gint), y: Number(gint), c: Grx.Color): void {
    // Gjs wrapper for grx_fast_draw_hline()
}
  

Draws a horizontal line on the current context from the starting coordinates to the ending coordinates using the specified color.

This is more efficient that using Grx.fast_draw_line.

This function does not perform clipping. If you cannot ensure that the endpoints are within the bounds of the current context, then use Grx.draw_hline instead.

x1

starting X coordinate

x2

ending X coordinate

y

Y coordinate

c

the color