Drawing shapes with maths and code
Nov 01, 2021
5 minutes
As a child I had Spirograph, and it was fascinating how coloured pencils and a rotating cog could create such wonderful patterns. Little did we know that years later we would be reproducing those same patterns with code. In this tutorial we shall use a little maths to generate coloured patterns in Scratch 3.
Scratch 3 should come pre-installed on your Raspberry Pi OS image, but just in case it is missing it can be installed from the main menu, under Preferences > Recommended Software. Scratch 3 is found in the Programming category; tick the box and click Apply to install. Once installed, Scratch 3 can be found in the main menu under Programming.
Scratch 3 should come pre-installed on your Raspberry Pi OS image, but just in case it is missing it can be installed
You’re reading a preview, subscribe to read more.
Start your free 30 days