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

285
Views
¿Cómo puedo cambiar el color y la acción de mi botón en JS (p5)?

Estoy tratando no solo de cambiar el color de mi botón, sino también de poder llamar a una función onClick() que lo vincule a la siguiente GUI. ¿Cómo hago esto? Estoy usando p5 como mi IDE.

 //Load the GUI let img; function preload() { img = loadImage('assets/main_menu.PNG'); } //Call the GUI function setup() { createCanvas(img.width, img.height); img.resize(img.width, img.height) image(img, 0, 0); } //Button 1 let button; function draw() { image(img, 0, 0); button = createButton('Type Planet!'); button.position(100, 855); button.size(200,50); button.color('red'); }
about 4 years ago · Juan Pablo Isaza
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!