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

253
Views
¿Cómo llenar el lienzo con valores RGB?

básicamente quiero hacer una etiqueta grande con ancho y alto de 512 píxeles que muestre todos los tonos de RGB donde el rojo es 0, el verde es la coordenada x dividida por 2 y el azul es la coordenada y dividida por dos

 var c = document.getElementById("big"); var ctx = c.getContext("2d"); console.log(ctx.height); var my_gradient = ctx.createLinearGradient(c.width/2, c.height/2, 120,120); my_gradient.addColorStop(0, "red"); my_gradient.addColorStop(0.5 ,"green"); my_gradient.addColorStop(1, "blue"); ctx.fillStyle = my_gradient; ctx.fillRect(0, 0, 512, 512);

el objetivo final es hacer un selector de color con el aspecto de la imagen adjunta objetivo final

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!