More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
post
page
Python IDE Dashboard
Tag: Coordinates

Python Fractals

Fractal? A fractal is a curve or geometrical figure, which is based on a recurring pattern that repeats itself indefinitely at progressively smaller scales. Fractals are useful in modelling some structures (such as snowflakes), and in describing partly random or

Victor Vasarely’s Artwork revisited using Python

In this blog post we are looking at a specific painting from Victor Vasarely. The painting is from a serie of paintings called “Alphabet Plastique” and was painted in the 70’s. We are going to try to recreate this painting

Python Shapes using Turtle

Learning Objectives In this challenge we are going to use x and y coordinates to draw shapes on the screen. We will be using the turtle library to draw on the screen. X and Y coordinates? Quadrant? Check the above

Random Cloud Generator using Python

Can computers produce artwork? In this challenge we are looking at how to write a piece of code to generate a “pretty” graphic. Our first script will generate a random cloud on a blue sky by drawing several (15 in

Projectile Motion Formula

Most artillery games are based on the Projectile Motion Formula used to trace the trajectory of a projectile thrown in the air. Due to gravity, its trajectory will be a parabola which shape will vary based on the angle and

Goal Line Technology

Goal Line Technology

Inspired by the football worldcup we came up with our own Python script to implement the goal line technology. Rules of the challenge: Use Python to display the goal line on the screen as well as the two goal posts.

Python Turtle Clock

This challenge consists of using the Python turtle library and the datetime library to create a program that displays the current time as an anlogue clock. To complete this challenge we need to do some angle calculations to understand what

Python Turtle Challenge

In this challenge we are going to use the turtle library to draw the following shape: Step 1: Run the code below: Step 2: Complete the code to draw the full shape. (You can complete the code in the Trinket

How to create a bouncing ball in Scratch

Step 1 – Change your main sprite to a ball Step 2 – Add the following script to your sprite:  This tutorial is available as a pdf: How to create a bouncing ball in Scratch See how to create a

How to create flying/falling objects in Scratch

In this tutorial we will get a spaceship to fall from the top to the bottom of the screen. Add the following code to your sprite (e.g. Spaceship): To understand this script you need to understand how x and y