Grx.Context.flood_spill2

@accepts(Grx.Context, int, int, int, int, Grx.Color, Grx.Color, Grx.Color, Grx.Color)
@returns(none)
def flood_spill2(self, x1, y1, x2, y2, old_c1, new_c1, old_c2, new_c2):
    # Python wrapper for grx_context_flood_spill2()
  

Replaces two old colors with two new colors in the context in the area bounded by the rectangle x1, y1, x2, y2. old_c1 is replaced with new_c1 and old_c2 is replaced with new_c2.

This is quite useful for highlighting a selected item in a list, or changing a selected color(s) in a multi colored area.

Also see Grx.flood_spill2 for operating on the current context.

self

the context

x1

the left edge of the bounding rectangle

y1

the top edge of the bounding rectangle

x2

the right edge of the bounding rectangle

y2

the bottom edge of the bounding rectangle

old_c1

the first color to be replaced

new_c1

the first new color

old_c2

the second color to be replaced

new_c2

the second new color