Skip to content

Commit

Permalink
display: Change green to lime for default bg
Browse files Browse the repository at this point in the history
  • Loading branch information
wdoekes committed Dec 13, 2024
1 parent 050be2a commit 71c24cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ constexpr float hue(float hue360)
constexpr float HUE_RED = hue(0);
constexpr float HUE_ORANGE = hue(30);
constexpr float HUE_YELLOW = hue(60);
constexpr float HUE_LIME = hue(90);
constexpr float HUE_GREEN = hue(120);


Expand Down Expand Up @@ -487,12 +488,12 @@ int main()
for (int x = 0; x < 32; ++x) {
if (age[x][y] < lifetime[x][y] * 0.3f) {
graphics.set_pen(graphics.create_pen_hsv(
HUE_GREEN, saturation, lightness));
HUE_LIME, saturation, lightness));
graphics.pixel(Point(x, y));
} else if(age[x][y] < lifetime[x][y] * 0.5f) {
float decay = (lifetime[x][y] * 0.5f - age[x][y]) * 5.0f;
graphics.set_pen(graphics.create_pen_hsv(
HUE_GREEN, saturation, lightness * decay));
HUE_LIME, saturation, lightness * decay));
graphics.pixel(Point(x, y));
}
if (age[x][y] >= lifetime[x][y]) {
Expand Down

0 comments on commit 71c24cc

Please sign in to comment.