Skip to content

Commit 06f8f43

Browse files
committed
fixed density alpha value + tweaked values
1 parent d6988fd commit 06f8f43

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

header/const.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
const int SIZE = 100;
1+
const int SIZE = 70;
22
const int SCALE = 8;

src/container.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void Container::Render(sf::RenderWindow& win, Color color) {
9797

9898
switch (color) {
9999
case Color::Default:
100-
rect.setFillColor(sf::Color(255, 255, 255, this->density[IX(i,j,this->size)]));
100+
rect.setFillColor(sf::Color(255, 255, 255, (this->density[IX(i,j,this->size)] > 255) ? 255 : this->density[IX(i,j,this->size)]));
101101
break;
102102
case Color::Hsb:
103103
rect.setFillColor(this->Hsv((this->density[IX(i,j,this->size)]), 1, 1, 255));

src/sim.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void Sim::Run() {
3636
}
3737

3838
if (sf::Mouse::isButtonPressed(sf::Mouse::Left))
39-
this->container.AddDensity(currentMouse.y/SCALE, currentMouse.x/SCALE, 255);
39+
this->container.AddDensity(currentMouse.y/SCALE, currentMouse.x/SCALE, 200);
4040

4141
currentMouse = sf::Mouse::getPosition(this->win);
4242

0 commit comments

Comments
 (0)