Merge pull request #307 from Tobbe/patch-1

the-basics.mdx: Make text match example code
This commit was merged in pull request #307.
This commit is contained in:
Kurt Hutten
2021-05-08 05:20:33 +10:00
committed by GitHub

View File

@@ -23,7 +23,8 @@ circle(5);
square([15,3]);
```
`circle(5);` gives us a circle with a radius of `5` and `square` is the 2d version of `cube`. Here we've given it dimensions of 15 and 2 for x and y respectively (or width and height if you prefer).
`circle(5);` gives us a circle with a radius of `5` and `square` is the 2d version of `cube`.
Here we've given it dimensions of 15 and 3 for x and y respectively (or width and height if you prefer).
<Image img={circleCube} className="mb-8 bg-contain rounded-md overflow-hidden" />