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);
|
||||
};
|
||||
Reference in New Issue
Block a user