Tag: Python Turtle

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

2D Shapes using Python Turtle

exterior-angle-triangle

In this challenge we will use Python Turtle to draw regular polygons including: An equilateral triangle A square A pentagon An hexagon etc. Did you know? In Euclidean geometry, a regular polygon is a polygon that is equiangular (all angles

Infinite Quarter Series

infinite-quarter-series-visual-representation-square

The infinite quarter series is a series where each term is a quarter of the previous one: We can visually represent this series by dividing a canvas (or price of paper) into 4 quadrants and colouring in one quadrant (bottom

Golden Angle

golden-angle-8

In geometry, the golden angle is the smaller of the two angles created by sectioning the circumference of a circle according to the golden ratio. Golden Angle ≈ 137.5° The golden angle plays a significant role in the theory of

Graphing Algorithm

quadratic-equation

In this challenge we will write several procedures to graph different mathematical equations on screen using Python Turtle. We will focus on: Linear equations: y = ax + b Quadratic equations: y = ax2 + bx + c Trigonometric functions:

Football Formation

football-team-formation

The purpose of this challenge is to understand how subroutines (functions/procedures) are used in Python to create sections of code that can be called/reused many times within a program. Subroutines mean that a section of code can be identified using

Astronomy Challenge

constellation

What is a constellation? In astronomy a constellation is a grouping of stars on the celestial sphere perceived as a figure or design. There are 88 recognized constellations and each of these have been named after characters from classical Greek

Python Turtle – My House

house-python-turtle

Using Python Turtle we created a range of functions to draw a house. We use these functions in our main program but can’t seem to get it to work. We believe the code has all the required instructions but these