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

81
Views
Is there a way to change to a different webpage/html page using a p5 function?

I've been coding a snake game, and I wanted to have a little html page for the instructions. But, I created p5 sprites for the buttons and I realized in the midst of the problem, I could not change the html page/web page through the p5 JavaScript editor. Is there a way I could change the webpage based on a p5 function?

So I tried creating an html element, but then I realized I couldn't make it go away if the game changed, e.g. the gameState changed from 0 to 1. When I tried it, it stayed there. Though I am still in the midst of finishing the game, is there a way I could call an html file to change using a p5 editor function? At this point, you might just call it changing to a different webpage. I don't know any methods to, and when I search online, I find nothing.

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!