The turtle and the magical world of random numbers

in #python11 months ago

The turtle and the magical world of random numbers

First I discovered that different libraries can cause conflicts and that we can create different environments for different projects using Venv.
This will come in handy later.

After that I've read a bit about data types in Python and I believe it should look something like this:

xx.png
​But data types are boring, so let's make some mess...

I added the Turtle library and started drawing squares, triangles and other spirals

1.png

then I mixed random numbers in the functions (Do you also see the fat cat climbing the tree here?)

4.png

which turned into unusual shapes...

5.png

from which a "great" work was created, titled The Turtle and the Magic World of Random Numbers (the turtle is hiding in a tree) ;)

untitled.png

Turtle, from what I understand, is based on the TKinter library, so in theory it should be possible to add a graphical interface somehow and create a generator of various types of game assets (small, cheerful trees, maps of undiscovered continents, demons from hell, etc.).

It should probably also be possible to save points generated by functions in lists and modify their position on the fly, which would give interesting animations, we'll see... ;)

Sort:  

haha, interesting random programming there you have. fun