Class

Gjsgjs/cairodefaultRadialGradient

A pattern for radial gradients

Hierarchy (View Summary)

Index

Constructors

Methods - Inherited from gjs/cairo.default.Gradient

Constructors

  • Creates a new radial gradient pattern

    Parameters

    • cx0: number

      X coordinate of the start circle

    • cy0: number

      Y coordinate of the start circle

    • radius0: number

      Radius of the start circle

    • cx1: number

      X coordinate of the end circle

    • cy1: number

      Y coordinate of the end circle

    • radius1: number

      Radius of the end circle

    Returns RadialGradient

Methods - Inherited from gjs/cairo.default.Gradient

  • Adds an opaque color stop to the gradient at the given offset

    Parameters

    • offset: number

      Offset position of the stop, between 0 and 1

    • red: number

      Red component, between 0 and 1

    • green: number

      Green component, between 0 and 1

    • blue: number

      Blue component, between 0 and 1

    Returns void

  • Adds a color stop to the gradient at the given offset

    Parameters

    • offset: number

      Offset position of the stop, between 0 and 1

    • red: number

      Red component, between 0 and 1

    • green: number

      Green component, between 0 and 1

    • blue: number

      Blue component, between 0 and 1

    • alpha: number

      Alpha component, between 0 and 1

    Returns void