APC

Drawing shapes with maths and code

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.

More from APC

APC9 min readSecurity
How Do You Know If You’ve Been Hacked
Cyberattacks don’t look like you might expect – and they certainly don’t look like they do in the movies. If your security is compromised, you probably won’t see a big flashing sign saying “YOU HAVE BEEN HACKED”, or weird skull-and-crossbones graphic
APC5 min read
Snapdragon X Elite Beats Apple, AMD And Intel Flagship Mobile CPUs
Microsoft is set to unveil its Surface Pro 10 and Surface Laptop 6 in June, and the tech giant has high expectations for the ARM CPUs that will power those PCs. Microsoft is reportedly confident that its new Surface PCs running on Qualcomm Snapdragon
APC2 min read
Panasonic’s Astrova In-flight Entertainment System Will Make Economy Travel Less Arduous
Flying in cattle class in the 21st century is generally not all that enjoyable – unless you’re 150cm tall or an excited child that is. You have to put up with shrinking legroom, long queues at check in and security, unappealing food and generally poo

Related