0 Members and 2 Guests are viewing this topic.
function on.paint(gc) for i=0,255 do gc:setColorRGB(i,i,i) gc:drawLine(i, 0, i, 200) -- using the same variable for the position because I'm lazy endend
shade = floor((0.299 * R + 0.587 * G + 0.114 * B) / 16)
floor((0.299*150+0.587*100+0.114*255)/16)=8