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

176
Views
Rotate circles around center point like a Solar System (Java Script)

I am working on a project as I try to learn Java Script. I managed to make the circles and a center point. I have tried using things like the rotate command, which may be completely off course, but I am trying to make the circles move in a circle around the center point/dot like a solar system would. I would also like to be able to change the speed for each circle. If possible so I can get a better understanding of setting the center point how could I make another object near one of the circles and have it rotate around the center of that circle?

My current program looks like this (I am using Khan Academy)

var x=0;
var y=0;

draw = function() {
    background(255);
    strokeWeight(5);
    point(200,200);
    strokeWeight(2);
    ellipse(x+250,y+250,50,50);
    ellipse(x+75,y+200,100,100);
    ellipse(x+125,y+125,25,25);
};
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!