Save point for converion of colors

This commit is contained in:
2024-12-30 15:36:54 +01:00
parent 28b3d334c1
commit 46a739ae28
8 changed files with 279 additions and 25 deletions

View File

@@ -1,4 +1,5 @@
#include <raylib.h>
Color ColorLerp(Color c1, Color c2, float amount);
Color ColorAdd(Color c, int add);
Color ColorAdd(Color c1, Color c2);
Color ColorAddValue(Color c, int add);

View File

@@ -25,12 +25,16 @@ public:
private:
Dna *m_dna;
uint128 branchSeed;
int size = 0;
Vector2 start = {0};
std::list<DrawArgs> draw_calls;
void generateBranches();
void drawBranch();
Vector2 drawLine();
inline uint8_t get_num_of_branches(uint8_t dep);
inline Color get_start_color(uint8_t dep);
inline Color get_end_color(uint8_t dep, Color &start);
};

View File

@@ -28,9 +28,9 @@ struct Branch
uint8_t colorR;
uint8_t colorG;
uint8_t colorB;
uint8_t colorR_change;
uint8_t colorG_change;
uint8_t colorB_change;
int8_t colorR_change;
int8_t colorG_change;
int8_t colorB_change;
uint8_t color_parent;
uint8_t color_var;