Canvas.createLinearGradient

Creates a linear gradient along the line given by the coordinates represented by the parameters.

  1. CanvasGradient createLinearGradient(float x0, float y0, float x1, float y1)
  2. CanvasGradient createLinearGradient(vec2f pt0, vec2f pt1)
    struct Canvas
    nothrow @nogc
    createLinearGradient

Meta