Use size from dna on the tree
This commit is contained in:
@@ -9,9 +9,10 @@ struct DrawArgs
|
||||
{
|
||||
Vector2 start;
|
||||
float angleDeg;
|
||||
float lenghth;
|
||||
float length;
|
||||
int dep;
|
||||
Color parent;
|
||||
int size;
|
||||
};
|
||||
|
||||
class Tree
|
||||
@@ -28,13 +29,15 @@ private:
|
||||
Dna *m_dna;
|
||||
uint128 branchSeed;
|
||||
|
||||
int size = 0;
|
||||
int canvasSize = 0;
|
||||
Vector2 start = {0};
|
||||
std::list<DrawArgs> draw_calls;
|
||||
|
||||
void drawBranch();
|
||||
|
||||
inline uint8_t get_num_of_branches(uint8_t dep);
|
||||
inline int get_num_of_branches(int dep);
|
||||
inline Color get_start_color(DrawArgs &arg);
|
||||
inline Color get_end_color(uint8_t dep, Color &start);
|
||||
inline Color get_end_color(int dep, Color &start);
|
||||
inline int get_start_size(DrawArgs &arg);
|
||||
inline int get_end_size(DrawArgs &arg, int start);
|
||||
};
|
@@ -36,6 +36,7 @@ struct Branch
|
||||
uint8_t size;
|
||||
uint8_t size_parent;
|
||||
uint8_t size_level;
|
||||
uint8_t size_change;
|
||||
uint8_t size_var;
|
||||
|
||||
uint8_t length;
|
||||
|
Reference in New Issue
Block a user