|
![](/i/fill.gif) |
SamuelT <STB### [at] aol com> wrote:
: color = (png_byte)floor((line_data[col][RED]*0.30 +
: line_data[col][GREEN]*0.59 +
: line_data[col][BLUE]*0.11) * 255.0);
: Perhaps I can use your idea+his values to make it work?
It's not my idea. It's a commonly known equation.
Using those values it would be:
brightness = red*0.3 + green*0.59 + blue*0.11
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |