Picture.gradientHorizontal

Paints a horizontal gradient on the picture.

class Picture
final
void
gradientHorizontal
(
Point position
,
Size size
,,,
ubyte a = 0xff
)

Parameters

position
Type: Point

The position within the picture to paint the gradient.

size
Type: Size

The size of the gradient.

from
Type: Paint

The paint to gradient from.

to
Type: Paint

The paint to gradient to.

a
Type: ubyte

The alpha channel of the gradient.

Meta