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

143
Views
Intentando dibujar un círculo usando "arco" en javaScript pero no funciona

Estoy tratando de dibujar un círculo en el lienzo en javascript, pero no funciona y no recibo ningún error. Lo he hecho antes y generalmente funciona, pero por alguna razón ahora no lo es. Cualquier ayuda sería muy apreciada.

 // VARIABLES var x = 100 ; var y = 100; var r = 50; var c = 272; var a = 0.9; // EXECUTABLE CODE circle(); // FUNCTION function circle(x,y,r,c,a){ ctx.beginPath(); ctx.arc(x,y,r,0,Math.PI*2); ctx.fillStyle = "hsl("+c+", 100%, 50%,"+a+")"; ctx.fill(); }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

La razón por la que no funciona es porque no pasó los argumentos x,y,r,c,a al invocar la función de circle . Entonces, haz este circle(x,y,r,c,a) y debería funcionar para ti.

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!