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

263
Views
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
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!