Properties of the RadialGradient shader

interface RadialGradientProps {
    colors: number[];
    height: number;
    pivot: [number, number];
    stops: number[];
    width: number;
}

Properties

colors: number[]

Array of colors to be used in the RadialGradient shader

[0xff000000, 0xffffffff]
height: number

height of the RadialGradientEffect

if not defined uses the width value

pivot: [number, number]

center point of where the RadialGradientEffect is drawn

stops: number[]

Array of color stops

width: number

Width of the RadialGradientEffect