use length from dna

This commit is contained in:
2025-01-02 18:05:16 +01:00
parent f60b63e082
commit 7f2265ca12
4 changed files with 37 additions and 13 deletions

View File

@@ -9,7 +9,6 @@ struct DrawArgs
{
Vector2 start;
float angleDeg;
float length;
int dep;
Color parent;
int size;
@@ -40,4 +39,5 @@ private:
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);
inline float get_lenght(DrawArgs &arg);
};

View File

@@ -40,8 +40,6 @@ struct Branch
uint8_t size_var;
uint8_t length;
uint8_t length_parent;
uint8_t length_level;
uint8_t length_var;
uint8_t branch_count;
@@ -56,7 +54,7 @@ struct Dna
uint128 mountenSeed;
uint128 starSeed;
uint128 branchSeed;
std::array<Branch, MAX_DEPTH> branches;
Branch branches[MAX_DEPTH];
};
void newDna(Dna &dna);