Skip to content

Instantly share code, notes, and snippets.

@evandrododo
Created September 9, 2019 23:52
Show Gist options
  • Save evandrododo/a83e5d090d20c12f4932001b62116169 to your computer and use it in GitHub Desktop.
Save evandrododo/a83e5d090d20c12f4932001b62116169 to your computer and use it in GitHub Desktop.
let sol, mercurio, venus, terra, marte,jupiter, saturno, urano,netuno,estrela;
// Configuração
function setup() {
createCanvas(2300,900);
sol=loadImage("imagens/sol.png");
mercurio=loadImage("imagens/mercurio.png");
venus =loadImage("imagens/venus.png");
terra=loadImage("imagens/terra.png");
marte=loadImage("imagens/marte.png");
jupiter=loadImage("imagens/jupiter.png");
saturno=loadImage("imagens/saturno.png");
urano=loadImage("imagens/urano.png");
netuno=loadImage("imagens/netuno.png");
estrela=loadImage("imagens/ana.jpg");
}
// Desenho
function draw() {
background(estrela);
image(sol,0,100);
image(mercurio, 400,100);
image(venus,550,110);
image(terra,830,289);
image(marte,999,210);
image(jupiter,1000,300);
image(saturno,1440,250);
image(urano,1890,500);
image(netuno,2000,50);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment