Skip to main content

About this free course

Download this course

Share this free course

Algorithmic Design
Algorithmic Design

Start this free course now. Just create an account and sign in. Enrol and complete the course for a free statement of participation or digital badge if available.

4.2 Skill 2: Multiple shapes on a tile

It is possible to draw multiple shapes on a single tile. This is not a necessary requirement for this wallpaper project, but it offers creative possibilities in terms of tile design and might be fun for you to experiment with.

To create multiple shapes, each shape requires its own beginShape() and endShape(Close) commands. Each shape can be assigned a different colour using the fill() command. Shapes can overlap, with the later ones in the code covering earlier ones, as shown in the example below.

Active content not displayed. This content requires JavaScript to be enabled.
Program 7  Creating multiple shapes on a tile
Interactive feature not available in single page view (see it in standard view).