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);
};