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)
    nothrow @trusted @nogc
    static if(NanoVegaHasArsdColor)
    radialGradient
    (,
    in float cx
    ,
    in float cy
    ,
    in float inr
    ,
    in float outr
    ,,)
  2. NVGPaint radialGradient(NVGContext ctx, float cx, float cy, float inr, float outr, NVGColor icol, NVGColor ocol)

See Also

Meta