Skip to content

API Reference / @gtkx/cairo / ColorStop

Type Alias: ColorStop ​

ColorStop = object

Defined in: types.d.ts:142

A color stop of a gradient pattern: its offset along the gradient and its color.

Properties ​

alpha ​

alpha: number

Defined in: types.d.ts:152

Alpha component.


blue ​

blue: number

Defined in: types.d.ts:150

Blue component.


green ​

green: number

Defined in: types.d.ts:148

Green component.


offset ​

offset: number

Defined in: types.d.ts:144

Position of the stop along the gradient, from 0 at the start to 1 at the end.


red ​

red: number

Defined in: types.d.ts:146

Red component.