Tag: Python Turtle

Semaphore Code Using Python Turtle

flag-semaphore

Flag semaphore is a telegraphy system conveying information at a distance by means of visual signals with hand-held flags. Information is encoded by the position of the flags. The current flag semaphore system uses two short poles with square flags,

My Python Turtle Roller Coaster

rollercoaster

In this challenge we will use Python Turtle to draw the track of a roller coaster. We have created three procedures for you to use when drawing the track. Each procedure takes two parameters as follows: straightLine(distance, speed): To draw

Python Turtle – Protractor Challenge

protractor

Python Turtle? Let’s Recap! Looking at the following code can you explain the purpose of each Python Turtle instructions: turtle.color(“red”) turtle.forward(100) turtle.right(90) turtle.left(45) turtle.penup() turtle.pendown() turtle.goto(0,0) turtle.circle(50) turtle.setHeading(45) (X,Y) Coordinates? The canvas we are drawing on (using Python Turtle) is

Python Turtle Spirograph

hypotrochoid

In this blog post we will create a spirograph using Python Turtle to draw different types of curves. Did you know? A Spirograph is a geometric drawing toy that produces mathematical roulette curves of the variety technically known as hypotrochoids

Python Turtle – WordArt Challenge

character-A-dot-to-dot

In this challenge we will use Python Turtle to draw text on screen and customise the appearance of our text. To do so we have created our own font as a Python dictionary. Each letter of the alphabet is represented

Confetti Artwork Challenges

confetti-blue

For these challenges we will produce on screen artwork by randomly positioning confetti on different shapes of canvas. Our code will use Python Turtle to draw the canvas and the confetti. Square Canvas Check how the code provided below randomly

Confetti Challenge

confetti

In this Python challenge we will write a script to randomly draw confetti on a canvas while ensuring that none of the confetti overlap with each other! Problem Decomposition In this challenge we will need to solve the following problems:

Random Background Generator

artillery-game

In this challenge we will use a Python script (using Python Turtle) to generate a random background for a 2D video game. To create a mountain range skyline we will use a polynomial function:   In our example (see trinket

Oblique Projection Formulas

Oblique Projection Formula

The aim of this challenge is to demonstrate how the oblique projection formulas are used to convert 3D coordinates (x,y,z) into 2D coordinates (x,y). The oblique projection formulas are essential to understand how 3D models are displayed on a 2D

Moroccan Mosaic

Zellige

Moroccan mosaic, aka Zellige (الزليج‎‎), is a form of Islamic art and one of the main characteristics of Moroccan architecture. It consists of geometrically patterned mosaics, used to ornament walls, ceilings, fountains, floors, pools and tables. Each mosaic is a