treender/inc/BackGround.hpp
2024-03-09 23:00:02 +01:00

33 lines
614 B
C++

#include <vector>
#include "raylib.h"
class BackGround
{
public:
BackGround() = default;
~BackGround() = default;
void init(int size);
void newGen();
private:
void starts();
void moon();
void mounten(size_t mountenSegments, float scale, int min, int max, Color color);
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};
int minSizeOfMoon = 40;
int maxSizeOfMoon = 60;
int maxYPosOfMoon = 600;
Color mountenColor = {28, 28, 38, 255};
};