POV-Ray : Newsgroups : povray.advanced-users : vlength( ) : Re: vlength( ) Server Time
30 Jul 2024 08:30:18 EDT (-0400)
  Re: vlength( )  
From: Warp
Date: 14 Jun 2000 04:28:49
Message: <39474241@news.povray.org>
SamuelT <STB### [at] aolcom> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.