Comment Comment by egeozcan var canvas = document.getElementById('canvas'); var ctx = canvas.getContext('2d'); ctx.fillStyle = `rgb(${r}, ${g}, ${b})`; ctx.fillRect(x, y, 1, 1); I say it's pretty close. parent egeozcan 8 years ago