Grx.get_scanline

@accepts(int, int, int, int)
@returns([Grx.Color])
def get_scanline(x1, x2, y, n):
    # Python wrapper for grx_get_scanline()
  

An efficient way to get pixels from the current context. Important: the return value is only valid until the next Grx call!

x1

the starting X coordinate

x2

the ending X coordinate

y

the Y coordinate

n

the length of the array

Returns