animator.skia.GradientShader

class animator.skia.GradientShader

Bases: pybind11_builtins.pybind11_object

__init__(*args, **kwargs)

Methods

MakeLinear(*args, **kwargs)

Overloaded function.

MakeRadial(*args, **kwargs)

Overloaded function.

MakeSweep(*args, **kwargs)

Overloaded function.

MakeTwoPointConical(*args, **kwargs)

Overloaded function.

__init__(*args, **kwargs)

class Flags

Bases: pybind11_builtins.pybind11_object

Members:

kInterpolateColorsInPremul_Flag

property name
static MakeLinear(*args, **kwargs)

Overloaded function.

  1. MakeLinear(pts: List[animator.skia.Point], colors: List[int], pos: Optional[List[float]] = None, mode: animator.skia.TileMode = <TileMode.kClamp: 0>, flags: int = 0, localMatrix: animator.skia.Matrix = None) -> animator.skia.Shader

Returns a linear gradient shader between the two specified pts with the specified colors.

  1. MakeLinear(pts: List[animator.skia.Point], colors: List[animator.skia.Color4f], colorSpace: animator.skia.ColorSpace = None, pos: Optional[List[float]] = None, mode: animator.skia.TileMode = <TileMode.kClamp: 0>, interpolation: animator.skia.GradientShader.Interpolation = <animator.skia.GradientShader.Interpolation object at 0x7f2050117330>, localMatrix: animator.skia.Matrix = None) -> animator.skia.Shader

Returns a linear gradient shader between the two specified pts with the specified colors.

  1. MakeLinear(pts: List[animator.skia.Point], colors: List[animator.skia.Color4f], colorSpace: animator.skia.ColorSpace = None, pos: Optional[List[float]] = None, mode: animator.skia.TileMode = <TileMode.kClamp: 0>, flags: int = 0, localMatrix: animator.skia.Matrix = None) -> animator.skia.Shader

Returns a linear gradient shader between the two specified pts with the specified colors.

static MakeRadial(*args, **kwargs)

Overloaded function.

  1. MakeRadial(center: animator.skia.Point, radius: float, colors: List[int], pos: Optional[List[float]] = None, mode: animator.skia.TileMode = <TileMode.kClamp: 0>, flags: int = 0, localMatrix: animator.skia.Matrix = None) -> animator.skia.Shader

Returns a radial gradient shader with the specified center, radius and colors.

  1. MakeRadial(center: animator.skia.Point, radius: float, colors: List[animator.skia.Color4f], colorSpace: animator.skia.ColorSpace = None, pos: Optional[List[float]] = None, mode: animator.skia.TileMode = <TileMode.kClamp: 0>, interpolation: animator.skia.GradientShader.Interpolation = <animator.skia.GradientShader.Interpolation object at 0x7f2050117670>, localMatrix: animator.skia.Matrix = None) -> animator.skia.Shader

Returns a radial gradient shader with the specified center, radius and colors.

  1. MakeRadial(center: animator.skia.Point, radius: float, colors: List[animator.skia.Color4f], colorSpace: animator.skia.ColorSpace = None, pos: Optional[List[float]] = None, mode: animator.skia.TileMode = <TileMode.kClamp: 0>, flags: int = 0, localMatrix: animator.skia.Matrix = None) -> animator.skia.Shader

Returns a radial gradient shader with the specified center, radius and colors.

static MakeSweep(*args, **kwargs)

Overloaded function.

  1. MakeSweep(cx: float, cy: float, colors: List[int], pos: Optional[List[float]] = None, mode: animator.skia.TileMode = <TileMode.kClamp: 0>, startAngle: float = 0, endAngle: float = 360, flags: int = 0, localMatrix: animator.skia.Matrix = None) -> animator.skia.Shader

Returns a sweep gradient shader with the specified center (cx, cy) and colors.

  1. MakeSweep(cx: float, cy: float, colors: List[animator.skia.Color4f], colorSpace: animator.skia.ColorSpace = None, pos: Optional[List[float]] = None, mode: animator.skia.TileMode = <TileMode.kClamp: 0>, startAngle: float = 0, endAngle: float = 360, interpolation: animator.skia.GradientShader.Interpolation = <animator.skia.GradientShader.Interpolation object at 0x7f2050117d70>, localMatrix: animator.skia.Matrix = None) -> animator.skia.Shader

Returns a sweep gradient shader with the specified center (cx, cy) and colors.

  1. MakeSweep(cx: float, cy: float, colors: List[animator.skia.Color4f], colorSpace: animator.skia.ColorSpace = None, pos: Optional[List[float]] = None, mode: animator.skia.TileMode = <TileMode.kClamp: 0>, startAngle: float = 0, endAngle: float = 360, flags: int = 0, localMatrix: animator.skia.Matrix = None) -> animator.skia.Shader

Returns a sweep gradient shader with the specified center (cx, cy) and colors.

static MakeTwoPointConical(*args, **kwargs)

Overloaded function.

  1. MakeTwoPointConical(start: animator.skia.Point, startRadius: float, end: animator.skia.Point, endRadius: float, colors: List[int], pos: Optional[List[float]] = None, mode: animator.skia.TileMode = <TileMode.kClamp: 0>, flags: int = 0, localMatrix: animator.skia.Matrix = None) -> animator.skia.Shader

    Returns a conical gradient shader with the specified start and end points, the startRadius and endRadius, and the colors.

  2. MakeTwoPointConical(start: animator.skia.Point, startRadius: float, end: animator.skia.Point, endRadius: float, colors: List[animator.skia.Color4f], colorSpace: animator.skia.ColorSpace = None, pos: Optional[List[float]] = None, mode: animator.skia.TileMode = <TileMode.kClamp: 0>, interpolation: animator.skia.GradientShader.Interpolation = <animator.skia.GradientShader.Interpolation object at 0x7f2050117970>, localMatrix: animator.skia.Matrix = None) -> animator.skia.Shader

    Returns a conical gradient shader with the specified start and end points, the startRadius and endRadius, and the colors.

  3. MakeTwoPointConical(start: animator.skia.Point, startRadius: float, end: animator.skia.Point, endRadius: float, colors: List[animator.skia.Color4f], colorSpace: animator.skia.ColorSpace = None, pos: Optional[List[float]] = None, mode: animator.skia.TileMode = <TileMode.kClamp: 0>, flags: int = 0, localMatrix: animator.skia.Matrix = None) -> animator.skia.Shader

    Returns a conical gradient shader with the specified start and end points, the startRadius and endRadius, and the colors.