Skip to content

Instantly share code, notes, and snippets.

@mrjoshida
Created January 4, 2021 13:53
Show Gist options
  • Save mrjoshida/c4dfb5ed2a90719eaa7f0181a2d0ddfa to your computer and use it in GitHub Desktop.
Save mrjoshida/c4dfb5ed2a90719eaa7f0181a2d0ddfa to your computer and use it in GitHub Desktop.
Exemplar code for the Chapter 4 project Make a Container in the book Coding and the Arts (creativecodingbook.com). Paste into Sonic Pi to run.
cube({size: 1}); // Creates a cube that is 1 x 1 x 1
linear_extrude({height: 1}, square({size: 1})) // Creates a 1 x 1 square and then extrudes it by 1 to create a 1 x 1 x 1 cube
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment