Browse Source

Reduce Light radius and magnitude

tags/v0.5.0
Andrew Belt 7 years ago
parent
commit
e46448150d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/app/LightWidget.cpp

+ 2
- 2
src/app/LightWidget.cpp View File

@@ -6,7 +6,7 @@ namespace rack {

void LightWidget::draw(NVGcontext *vg) {
float radius = box.size.x / 2.0;
float oradius = radius + 20.0;
float oradius = radius + 15.0;

color.r = clampf(color.r, 0.0, 1.0);
color.g = clampf(color.g, 0.0, 1.0);
@@ -36,7 +36,7 @@ void LightWidget::draw(NVGcontext *vg) {
nvgRect(vg, radius - oradius, radius - oradius, 2*oradius, 2*oradius);
NVGpaint paint;
NVGcolor icol = color;
icol.a *= 0.15;
icol.a *= 0.10;
NVGcolor ocol = color;
ocol.a = 0.0;
paint = nvgRadialGradient(vg, radius, radius, radius, oradius, icol, ocol);


Loading…
Cancel
Save