Picture.gradientHorizontal

Paints a horizontal gradient on the picture.

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

Parameters

position Point

The position within the picture to paint the gradient.

size Size

The size of the gradient.

from Paint

The paint to gradient from.

to Paint

The paint to gradient to.

a ubyte

The alpha channel of the gradient.

Meta