• Parameters

    • ctx: CanvasRenderingContext2D
    • heightPx: number
    • topColor: string
    • bottomColor: string

    Returns CanvasGradient