Skip to content

Commit

Permalink
screenshot code for lines
Browse files Browse the repository at this point in the history
  • Loading branch information
scanner-darkly committed May 27, 2024
1 parent 77b6818 commit 354edc1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SDLines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ struct SDLinesDisplay : TransparentWidget {
}

float voltage = module->inputs[SDLines::IN_INPUT].getVoltage(i);
// uncomment for screenshots voltage = (i + 1) * 1.2f - 5.f;

NVGcolor color;
if (voltage < min) {
Expand Down Expand Up @@ -143,6 +144,8 @@ struct SDLinesDisplay : TransparentWidget {

if (module) {
int channels = std::min(MAX_CHANNELS, module->inputs[SDLines::IN_INPUT].getChannels());
// uncomment for screenshots channels = 8;

deltaX = channels > 1 ? (w - 2.f - stroke * channels) / (channels - 1) + stroke : stroke;

/*
Expand Down

0 comments on commit 354edc1

Please sign in to comment.