Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

170
Visualizações
Converting Old Khan academy Project To VS code

Hey so this is an old Khan academy project i did, Im very new to coding and VS code. Wondering how i can convert this to work from a webiste ill build.

It was a magic 8 ball small project, think how you put things into khan doesnt read outside their environment very well

TIA

fill(0, 0, 0);
ellipse(200, 200, 375, 375);
fill(60, 0, 255);
triangle(200, 104, 280, 280, 120, 280);
fill(255, 255, 255);
var answer = floor(random(1, 6));
if (answer === 1) {   // response one
    fill(235, 9, 9);
    textSize(30);
    text("NOT", 171, 202);
    text('A',190,233);
    text("CHANCE", 137, 267); 
}
    
    else if (answer === 2)  // response two
  { 
      fill(76, 199, 14);
      textSize(23);
      text('FOR',176,207);
      textSize(40);
      text('SURE',144,250);
  }
  
    else if (answer === 3) // response three
    { 
        fill(245, 245, 12);
        textSize(30);
        text('ASK',170,197);
        text('AGAIN',154,230);
        text('LATER',153,261);
        
    }
else if (answer === 4) // response four
{
    fill(204, 138, 25);
    textSize(20);
    text('ANSWER',157,214);
    textSize(24);
    text('UNCLEAR',145,251);
    

}

else  // response five
{
    fill(218, 12, 237);
    textSize(19);
    text('MAGIC',170,198);
    text('8 BALL',170,232);
    textSize(19);
    text('MALFUNCTION',132,268);
    
    
    
}

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda