Difference between revisions of "Branch Assignment"
Jump to navigation
Jump to search
(→Branch) |
(→Branch) |
||
| Line 4: | Line 4: | ||
=Code to Implement= | =Code to Implement= | ||
| + | ==Turtle== | ||
| + | |||
| + | ==OpenGLStackUtils== | ||
| + | <nowiki>class OpenGLStackUtils | ||
| + | def self.push_do_pop | ||
| + | raise :not_yet_implemented | ||
| + | end | ||
| + | end<nowiki> | ||
| + | |||
==Branch== | ==Branch== | ||
<nowiki>class Branch | <nowiki>class Branch | ||
| − | def | + | def branch(length, line_width_in_pixels, depth_remaining) |
| + | raise :not_yet_implemented | ||
end | end | ||
end</nowiki> | end</nowiki> | ||
{| class="wikitable" style="text-align: center; " | {| class="wikitable" style="text-align: center; " | ||
| − | |[[File: | + | |[[File:Branch_MaxDepth0.png]] |
| − | |[[File: | + | |[[File:Branch_MaxDepth1.png]] |
| − | |[[File: | + | |[[File:Branch_MaxDepth2.png]] |
| − | |[[File: | + | |[[File:Branch_MaxDepth3.png]] |
| − | |[[File: | + | |[[File:Branch_MaxDepth4.png] |
| − | + | |[[File:Branch_MaxDepth5.png]] | |
| − | |||
| − | |[[File: | ||
|- | |- | ||
| − | | | + | |max_depth: 0 |
| − | | | + | |max_depth: 1 |
| − | | | + | |max_depth: 2 |
| − | | | + | |max_depth: 3 |
| − | | | + | |max_depth: 4 |
| − | | | + | |max_depth: 5 |
| − | |||
| − | |||
|} | |} | ||
Revision as of 08:25, 24 November 2020
Code to Implement
Turtle
OpenGLStackUtils
class OpenGLStackUtils
def self.push_do_pop
raise :not_yet_implemented
end
end<nowiki>
==Branch==
<nowiki>class Branch
def branch(length, line_width_in_pixels, depth_remaining)
raise :not_yet_implemented
end
end
|
|
|
|
[[File:Branch_MaxDepth4.png] |
|
| max_depth: 0 | max_depth: 1 | max_depth: 2 | max_depth: 3 | max_depth: 4 | max_depth: 5 |




