Use Dna color

This commit is contained in:
2024-12-30 21:53:13 +01:00
parent 46a739ae28
commit 5670183dc0
3 changed files with 30 additions and 31 deletions

View File

@@ -11,6 +11,7 @@ struct DrawArgs
float angleDeg;
float lenghth;
int dep;
Color parent;
};
class Tree
@@ -32,9 +33,8 @@ private:
std::list<DrawArgs> draw_calls;
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_start_color(DrawArgs &arg);
inline Color get_end_color(uint8_t dep, Color &start);
};

View File

@@ -6,7 +6,7 @@
#include <raylib.h>
#define MAX_DEPTH 10
#define MAX_DEPTH 8
struct uint128
{
@@ -31,7 +31,6 @@ struct Branch
int8_t colorR_change;
int8_t colorG_change;
int8_t colorB_change;
uint8_t color_parent;
uint8_t color_var;
uint8_t size;