The OpenD Programming Language

radialGradient

Creates and returns a radial gradient. Parameters (cx, cy) specify the center, inr and outr specify the inner and outer radius of the gradient, icol specifies the start color and ocol the end color. The gradient is transformed by the current transform when it is passed to fillPaint or strokePaint.

  1. NVGPaint radialGradient(NVGContext ctx, float cx, float cy, float inr, float outr, Color icol, Color ocol)
  2. NVGPaint radialGradient(NVGContext ctx, float cx, float cy, float inr, float outr, NVGColor icol, NVGColor ocol)
    nothrow @trusted @nogc
    radialGradient
    ()
    (,
    float cx
    ,
    float cy
    ,
    float inr
    ,
    float outr
    ,
    const scope auto ref NVGColor icol
    ,
    const scope auto ref NVGColor ocol
    )

See Also

Meta