• Draws a scale color gradient.

    Parameters

    • renderOptions: RenderOptions

      The rendering options.

    • topPadding: number

      The top padding for positioning.

    Returns fabric.Rect

    A Fabric.js rectangle object representing the gradient.