Created
January 4, 2021 13:53
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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