add Color class for easy change
This commit is contained in:
@@ -18,12 +18,8 @@ private:
|
||||
int size = 0;
|
||||
Texture2D texShapes = {1, 1, 1, 1, 7};
|
||||
|
||||
Color backGroundColor = {21, 34, 56, 255};
|
||||
|
||||
size_t numOfStarts = 150;
|
||||
Color starColor = WHITE;
|
||||
|
||||
Color moonColor = {240, 240, 190, 255};
|
||||
float minSizeOfMoon = 0.05f;
|
||||
float maxSizeOfMoon = 0.075f;
|
||||
float maxYPosOfMoon = 0.75f;
|
||||
@@ -32,8 +28,6 @@ private:
|
||||
float bigRingBlend = 0.02f;
|
||||
float smallRingBlend = 0.05f;
|
||||
|
||||
Color backMountenColor = {28, 28, 38, 255};
|
||||
Color frontMountenColor = {0, 0, 0, 255};
|
||||
float colorRatio1 = 0.3f;
|
||||
float colorRatio2 = 0.5f;
|
||||
float mounten1 = 0.6875f;
|
||||
|
13
inc/canvas/BackGroundColors.hpp
Normal file
13
inc/canvas/BackGroundColors.hpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "raylib.h"
|
||||
|
||||
class BackGroundColors
|
||||
{
|
||||
private:
|
||||
public:
|
||||
static void setColor();
|
||||
static Color backGroundColor;
|
||||
static Color starColor;
|
||||
static Color moonColor;
|
||||
static Color backMountenColor;
|
||||
static Color frontMountenColor;
|
||||
};
|
Reference in New Issue
Block a user