mirror of
https://codeberg.org/armin/beamgrid.git
synced 2026-09-01 04:10:47 +02:00
Add 3D gradient angle customization; add screenshots
This commit is contained in:
parent
aeb4b83281
commit
8b963ae50c
4 changed files with 7 additions and 3 deletions
|
|
@ -380,9 +380,9 @@ private:
|
|||
|
||||
if (b < litCount)
|
||||
{
|
||||
const float frac = (b + 0.5f) / static_cast<float> (leds);
|
||||
const juce::Colour base = lf.getTeal().withMultipliedBrightness (0.35f + 0.65f * frac);
|
||||
fill3D (g, base, juce::Rectangle<float> (x, blockTop, bandWidth, blockLen), radius, depthAmount);
|
||||
// Flat base colour; the 3D knob (fill3D) is the only source
|
||||
// of shading so LEDs stay solid until 3D is turned up.
|
||||
fill3D (g, lf.getTeal(), juce::Rectangle<float> (x, blockTop, bandWidth, blockLen), radius, depthAmount);
|
||||
}
|
||||
|
||||
// Peak honours the same discrete blocks: draw the peak block in the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue