├── README.md
├── style.css
├── index.html
├── LICENSE
└── sketch.js
/README.md:
--------------------------------------------------------------------------------
1 | # ___formas-geometricas___
--------------------------------------------------------------------------------
/style.css:
--------------------------------------------------------------------------------
1 | html, body {
2 | margin: 0;
3 | padding: 0;
4 | }
5 | canvas {
6 | display: block;
7 | }
8 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Formas geométricas
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2024 Rafael Assis Santos
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/sketch.js:
--------------------------------------------------------------------------------
1 | function setup() {
2 | createCanvas(1000, 900, WEBGL);
3 | }
4 |
5 | function draw() {
6 | background("green");
7 |
8 | translate(-240, -100, 0);
9 | normalMaterial();
10 | push();
11 | rotateZ(frameCount * 0.01);
12 | rotateX(frameCount * 0.01);
13 | rotateY(frameCount * 0.01);
14 | plane(70);
15 | pop();
16 |
17 | translate(240, 0, 0);
18 | push();
19 | rotateZ(frameCount * 0.01);
20 | rotateX(frameCount * 0.01);
21 | rotateY(frameCount * 0.01);
22 | box(70, 70, 70);
23 | pop();
24 |
25 | translate(240, 0, 0);
26 | push();
27 | rotateZ(frameCount * 0.01);
28 | rotateX(frameCount * 0.01);
29 | rotateY(frameCount * 0.01);
30 | cylinder(70, 70);
31 | pop();
32 |
33 | translate(-240 * 2, 200, 0);
34 | push();
35 | rotateZ(frameCount * 0.01);
36 | rotateX(frameCount * 0.01);
37 | rotateY(frameCount * 0.01);
38 | cone(70, 70);
39 | pop();
40 |
41 | translate(240, 0, 0);
42 | push();
43 | rotateZ(frameCount * 0.01);
44 | rotateX(frameCount * 0.01);
45 | rotateY(frameCount * 0.01);
46 | torus(70, 20);
47 | pop();
48 |
49 | translate(240, 0, 0);
50 | push();
51 | rotateZ(frameCount * 0.01);
52 | rotateX(frameCount * 0.01);
53 | rotateY(frameCount * 0.01);
54 | sphere(70);
55 | pop();
56 | }
57 |
--------------------------------------------------------------------------------