At My Fingertips

Rapid Playground

Documentation

Double Black Diamond

In this activity we will implement the double_black_diamondfunction that recreates the following graphic.

double black diamond

The rhombus

The first thing we need is a rhombus function. We have an activity that will guide you through the implementation of a rhombus function, therefore we suggest solving that first, and copy-pasting your code in here.

Loading...

Let's check how your code behaves by showing a black rhombus:

Loading...

The double black diamond

Now you are ready to implement the double_black_diamond function, that returns two rhombuses next to eachother: use the rhombus function that you implemented. Under the diamonds there should be a black label saying "EXPERTS ONLY" in Fira Sans font. Use the pytamaro PyTamaro icontext function to generate a text graphic.

Loading...

This activity has been created by LuCE Research Lab and is licensed under CC BY-SA 4.0.

Double Black Diamond

Logo of PyTamaro

PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI

Privacy PolicyPlatform Version 96857c4 (Sat, 04 May 2024 09:49:57 GMT)