メイン・コンテンツまでスキップ

VGLinearGradient

touchgfx/hal/VGData.hpp

Linear gradient paint definition.

Public Attributes​

const uint32_t *colors
Stop colors.
boolisSolid
True if all colors are solid.
const uint32_t *palette
1024 colors in ARGB888
const float *stopPositions
Stop positions on the vector.
uint32_tstops
Number of stops (colors)
floatx0
The gradient line start x.
floatx1
The gradient line end x.
floaty0
The gradient line start y.
floaty1
The gradient line end y.

Public Attributes Documentation​

colors​

const uint32_t * colors

Stop colors.

isSolid​

bool isSolid

True if all colors are solid.

palette​

const uint32_t * palette

1024 colors in ARGB888

stopPositions​

const float * stopPositions

Stop positions on the vector.

stops​

uint32_t stops

Number of stops (colors)

x0​

float x0

The gradient line start x.

x1​

float x1

The gradient line end x.

y0​

float y0

The gradient line start y.

y1​

float y1

The gradient line end y.