Linux Format

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.

Open Scratch 3. On first start Scratch may take a little while to open. We’re going to assume that

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format3 min read
AMD Ryzen 5 8600G
Socket: AM5 Arch: Zen 4 (Phoenix) Process: TSMC 4nm FinFET Cores: 6 Threads: 12 Cache: 384KB L1, 6MB L2, 16MB L3 Speed: 4.3GHz (5.0GHz boost) Unlocked: Yes GPU: Radeon 760M GPU clock: 2.8GHz Compute: 8 units AI: Ryzen AI, 16 TOPS Display: Up to 4, DP
Linux Format1 min read
Kaki Pi
Another Pi-like SBPC appears! From Yuridenk-Shokai in Japan, this packs a Renesas RZ/V2H Coretex-A55/R8/M33 MPU with 80 TOPS of AI. It’s aimed at robotics and has four CSI video inputs along with a PCIe 3 connection. Find out more in Japanese: www.ka
Linux Format2 min read
Moosync
Version: 10.3.2 Web: https://moosync.app There’s no scarcity of music players for the Linux desktop, but what sets Moosync apart from its peers is its ability to seamlessly play local tracks and online music. Moosync offers both DEB and RPM precompil

Related