Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

311
Views
¿Cómo usar la función dibujar y keyTyped() al mismo tiempo?

Quiero crear un código en el que, cuando haga clic en una tecla del teclado, reproduzca música y dibuje un rectángulo. Logré agregar música usando la función keyTyped() pero no estoy seguro de cómo agregar un rectángulo al lienzo.

¿Cómo usar la función dibujar y keyTyped() al mismo tiempo?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Algo como esto:

 function setup() { createCanvas(400, 400); background("white"); } function keyTyped(){ //play sound fill("black"); rect(50, 50, 100, 100); }
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!