Draw 3D shapes (cube)

Challenge Level: Growing experience

Learning outcomes

Students will be able to:

Requirement:

Write a program that draws a cube with each sides equal to 100 steps.

Orthographic cube.
Isometric cube.

Testing examples:

There are no testing examples for this challenge.

Languages

Scratch

What it should look like

Click on the green flag to see the expected output of your program.

Recommended blocks for solution 1
whenclicked
clearsetpensizeto3pendownpenup
gotox:0y:0pointindirection90move100stepsturn90degreesmove100stepsturn180-45degreesmove50stepsturn45degreespointindirection180move100stepsturn180-45degreesmove50stepsturn45degrees
repeat4repeat2repeat2
Recommended blocks for solution 2
whenclicked
clearsetpensizeto3pendownpenup
gotox:0y:-100pointindirection0move100stepsturn45degreesmove100stepsturn180-45degreesmove100stepsturn45degreesmove100stepsturn180-45degreesmove100stepsturn45degreesmove100stepsturn90degreesmove100stepsturn180-90degrees
repeat2repeat2repeat2
Hints
  • A cube can be drawn by drawing a square and two 45 degree rhombuses adjacent to each other.

Show Scratch solution

Extra Challenge

Extra challenge #1: Write programs to draw other 3D shapes (for example cuboids, pyramids, cylinders, …)