Use Dna color
This commit is contained in:
@@ -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);
|
||||
};
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user