|
|
@@ -32,13 +32,13 @@ void LightWidget::drawLight(NVGcontext *vg) { |
|
|
|
|
|
|
|
void LightWidget::drawHalo(NVGcontext *vg) { |
|
|
|
float radius = box.size.x / 2.0; |
|
|
|
float oradius = radius + 20.0; |
|
|
|
float oradius = radius + 15.0; |
|
|
|
|
|
|
|
nvgBeginPath(vg); |
|
|
|
nvgRect(vg, radius - oradius, radius - oradius, 2*oradius, 2*oradius); |
|
|
|
|
|
|
|
NVGpaint paint; |
|
|
|
NVGcolor icol = colorMult(color, 0.10); |
|
|
|
NVGcolor icol = colorMult(color, 0.08); |
|
|
|
NVGcolor ocol = nvgRGB(0, 0, 0); |
|
|
|
paint = nvgRadialGradient(vg, radius, radius, radius, oradius, icol, ocol); |
|
|
|
nvgFillPaint(vg, paint); |
|
|
|