Fix sun making everything transperent
and sun has beautiful gradient
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
#include <vector>
|
||||
#include <raylib.h>
|
||||
|
||||
#include "values/RandBuffer.hpp"
|
||||
#include "canvas/Sun.hpp"
|
||||
|
||||
#include <raylib.h>
|
||||
|
||||
|
||||
struct Moon
|
||||
{
|
||||
@@ -16,14 +20,17 @@ public:
|
||||
BackGround() = default;
|
||||
~BackGround() = default;
|
||||
void init(int size);
|
||||
void deinit();
|
||||
void newGen();
|
||||
void draw();
|
||||
|
||||
private:
|
||||
void drawStarts();
|
||||
void drawMoon();
|
||||
void drawSun();
|
||||
void drawMounten(size_t mountenSegments, int min, int max, Color color);
|
||||
|
||||
Sun sun;
|
||||
|
||||
RandBuffer starBuff;
|
||||
RandBuffer mountenBuff;
|
||||
Moon m_moon;
|
||||
@@ -34,8 +41,8 @@ private:
|
||||
|
||||
constexpr static size_t numOfStarts = 150;
|
||||
constexpr static float moonXOffset = 0.1f;
|
||||
constexpr static float minSizeOfMoon = 0.05f;
|
||||
constexpr static float maxSizeOfMoon = 0.075f;
|
||||
constexpr static float minSizeOfMoon = 0.075f;
|
||||
constexpr static float maxSizeOfMoon = 0.1f;
|
||||
constexpr static float maxYPosOfMoon = 0.80f;
|
||||
constexpr static float bigRingRatio = 0.5f;
|
||||
constexpr static float smallRingRatio = 0.25f;
|
||||
|
Reference in New Issue
Block a user