win32gui.GradientFill

GradientFill(hdc, Vertex, Mesh, Mode)

Shades triangles or rectangles by interpolating between vertex colors

Parameters

hdc : int

Handle to device context

Vertex : (PyTRIVERTEX,...)

Sequence of TRIVERTEX dicts defining color info

Mesh : tuple

Sequence of tuples containing either 2 or 3 ints that index into the trivertex array to define either triangles or rectangles

Mode : int

win32con.GRADIENT_FILL_* value defining whether to fill by triangle or by rectangle