Turtle Graphics in C++ (Part 2)
Extending the capabilities of the turtle class that we created in the previous episode. In the previous episode, we created a C++ class to allow us to implement turtle graphics. That class allowed us to specify a direction and a distance and then instruct the turtle to move accordingly. In this episode, we extend that code to allow us to make the turtle point towards any point in the screen coordinate system. This will prove to be an essential feature as we go on to explore fractal curves in the next episode. You might also want to check out the next video in this series, where I go on to use the turtle class to explore the famous von Koch snowflake fractal, as well as some other forms of recursively generated fractal curves. The video can be found here: https://youtu.be/WPz4QpKO6TU The first episode in this series, where we talk about using the SDL library to create cross-platform graphical displays in C++ can be found here: https://youtu.be/dpC_ewE5QLU And the previous episode, where we build the simple turtle class, can be found here: https://youtu.be/7yY9odZnoJI ********************************** You can also follow me on the QuantitativeBytes Facebook page at: www.facebook.com/QuantitativeBytes **********************************
Download
0 formatsNo download links available.