Save point for converion of colors
This commit is contained in:
@@ -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);
|
@@ -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);
|
||||
};
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user