├── README.md ├── style.css ├── index.html ├── sketch.js └── LICENSE /README.md: -------------------------------------------------------------------------------- 1 | # __--__por-do-sol__--__ -------------------------------------------------------------------------------- /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 | 9 | 10 | 11 |
12 |
13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /sketch.js: -------------------------------------------------------------------------------- 1 | function setup() { 2 | createCanvas(600, 600); 3 | } 4 | 5 | function draw() { 6 | background(220); 7 | } 8 | let posicaoVertical; 9 | 10 | function setup() { 11 | createCanvas(600, 600); 12 | posicaoVertical = 300; 13 | } 14 | 15 | function draw() { 16 | if(posicaoVertical < 500){ 17 | background("lightblue"); 18 | posicaoVertical=posicaoVertical 19 | +1; 20 | }else { 21 | background("black"); 22 | } 23 | fill("orange"); 24 | circle(300,posicaoVertical,300); 25 | fill("darkblue"); 26 | rect(0, 250, 600, 350); 27 | fill("khaki"); 28 | rect(0, 400, 600, 100); 29 | 30 | } -------------------------------------------------------------------------------- /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 | --------------------------------------------------------------------------------