Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

254
Vistas
how fill canvas with RGB values?

basically i want to make A big tag with width & height both 512 pixels that displays all the shades of RGB where red is 0, green is the x-coordinate divided by 2, and blue is the y-coordinate divided by two

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);

end goal is to make a colour picker with should look like attached picture end goal

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda