Commit 29dd01df by Dave Griffiths

### spelling and new pic

parent 21037bc5

197 KB | W: | H:

236 KB | W: | H:

• 2-up
• Swipe
• Onion skin
 ... ... @@ -34,7 +34,7 @@ This function is a bit like a for loop, in that it will repeat the box command as many times as count is set to at the start. If we pass 10 in, it checks it with the if, draws a cube and calls itself at the end with the count as 9 - and so on until it reaches 0, when it's finished (the "if" only runs it's follwing code running if count is greater than 0). "if" only runs it's following code running if count is greater than 0). Let's try it: ... ... @@ -83,7 +83,7 @@ explode the tree - your function should now look like this: ## Step 4 Adding direction and randomness Let's breifly go back to 2 dimensions and try adding direction (a `d` Let's briefly go back to 2 dimensions and try adding direction (a `d` parameter), this is needed so we can make longer branches in different directions. We'll add `d` to the `pos` in the tree call and to the size of the box too: ... ... @@ -124,7 +124,7 @@ Lets make it all much bigger and add a thickness to the branches. * Put `count` in the box size. * Change the 2 and -2's with 4 and -4 to make it go further. * Add back the third dimesion with two more branches. * Add back the third dimension with two more branches. def chance(percent): return random_range(0,100)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!