Skip to content

Commit

Permalink
Finished vleaning globals.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellGarwood committed Nov 4, 2018
1 parent 88fa111 commit 424bb25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SPIERSedit/src/globals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ Mask::Mask(QString name)
int n, m;
Name = name;
n = (int(static_cast<double>(50) * qrand()));
ForeColour[0] = 128 + int( static_cast<double>(126) * sin(static_cast<double>(n)));
ForeColour[1] = 128 + int( static_cast<double>(126) * cos(static_cast<double>(n)));
ForeColour[2] = 128 + int( static_cast<double>(127) * (qrand() / RAND_MAX));
ForeColour[0] = 128 + static_cast<int>( static_cast<double>(126) * sin(static_cast<double>(n)));
ForeColour[1] = 128 + static_cast<int>( static_cast<double>(126) * cos(static_cast<double>(n)));
ForeColour[2] = 128 + static_cast<int>( static_cast<double>(127) * (qrand() / RAND_MAX));
Contrast = 2;

for (m = 0; m < 3; m++) BackColour[m] = ForeColour[m] / 3;
Expand Down

0 comments on commit 424bb25

Please sign in to comment.