This is an animation created using sine and cosine formulas based on two different sets of parameters.
You can tweak with the animation by changing the parameters from both the FIRST_COMBINATION and SECOND_COMBINATION, aswell as the number of lines on the animation itself.
The example bellow shows the fractal tree generation based on the following parameters:
NUM_LINES = 10
FIRST_COMBINATION_COLOR = color(255, 235, 235)
FIRST_COMBINATION_X_MODIFIER = 125
FIRST_COMBINATION_Y_MODIFIER = 75
FIRST_COMBINATION_W_MODIFIER = 200
FIRST_COMBINATION_H_MODIFIER = 225
SECOND_COMBINATION_COLOR = color(255, 75, 75)
SECOND_COMBINATION_X_MODIFIER = 75
SECOND_COMBINATION_Y_MODIFIER = 125
SECOND_COMBINATION_W_MODIFIER = 225
SECOND_COMBINATION_H_MODIFIER = 200