Back to Browse

Turtle graphics in C++

9.4K views
Feb 6, 2020
36:14

Creating turtle graphics in C++ with the SDL library. Turtle graphics have been around for a long time, since the days that the programming language 'Logo' was taught in schools. The technique can be used to create some rather interesting graphics and also forms the basis of a range of fractal curves that I want to go on to explore in future episodes. In this episode, we create a simple class to implement our 'turtle' and create a simple but effective demonstration of the power of this technique for drawing. You can watch the previous episode where we talk about the SDL library that we are using to create the graphical displays here: https://youtu.be/dpC_ewE5QLU Also, the next episode where we extend the capabilities of the turtle class can be found here: https://youtu.be/uqksPVmEc5g And, over the course of the next couple of episodes I go on to use the turtle class we develop here to create a range of fractal curves, starting with the famous von Koch snowflake. You can catch that episode here: https://youtu.be/WPz4QpKO6TU I also go on to show how we can use turtle graphics and the turtle class that we create in this episode to draw dragon curves. You can see that episode here: https://youtu.be/WrQqN6itMjo Link to the SDL library website: http://www.libsdl.org/ ********************************** You can also follow me on the QuantitativeBytes Facebook page at: www.facebook.com/QuantitativeBytes **********************************

Download

0 formats

No download links available.

Turtle graphics in C++ | NatokHD