Add More Border Patterns
00:00 Adding More Border Patterns. So far you’ve added the border patterns with four and three sides, but there are still more to add: six with two sides, including four patterns—left-top, top-right, bottom-left, and right-bottom—which also form a polyline.
01:49 The two remaining two side patterns, left-right and top-bottom, must be represented as two disjoint lines, which run in parallel.
02:33 Next, there are four patterns with only one side for each compass direction. Notice that you return the lines you created at the very beginning of the function.
03:12 Finally, there’s only one case of an empty border pattern without any visual representation, which you can map to the null object primitive. That was a significant amount of code, but now the hard work is done.
03:43 You can put the pieces together to achieve some tangible results. It’s time to build the scalable vector graphics renderer, and that’s what you’ll start in the next section of the course.
Become a Member to join the conversation.