Download Now

    Reference nvgBoxGradient

    Declared in Codebot.Render.NanoVG.pas on line 607

    Creates and returns a box gradient. Box gradient is a feathered rounded rectangle, it is useful for rendering drop shadows or highlights for boxes. Parameters (x,y) define the top-left corner of the rectangle, (w,h) define the size of the rectangle, r defines the corner radius, and f feather. Feather defines how blurry the border of the rectangle is
    function nvgBoxGradient(Ctx: PNVGcontext; X, Y, W, H, R, F: Single; ICol, OCol: TNVGcolor): TNVGpaint;

    See also