POV-Ray : Newsgroups : povray.general : Assumed_gamma and .gray : Re: Assumed_gamma and .gray Server Time
8 May 2024 00:19:06 EDT (-0400)
  Re: Assumed_gamma and .gray  
From: Cousin Ricky
Date: 20 Jan 2017 16:01:09
Message: <58827a95$1@news.povray.org>
On 2017-01-20 03:53 AM (-4), Thomas de Groot wrote:
> On 20-1-2017 5:35, Cousin Ricky wrote:
>>
>> #macro DotGray (Color)
>>   #local C = color Color;
>>   (0.2126 * C.red + 0.7152 * C.green + 0.0722 * C.blue) // ITU-R BT.709
>> #end
>
> [scribbles with pencil on a greasy scrap of wrapping paper, and tacks it
> to an overweight folder]
>
> Done!

Ah, and fortunately for those of you not under Donald Trump's 
jurisdiction, this version also works:

#macro DotGrey (Colour)
   #local C = colour Colour;
   (0.2126 * C.red + 0.7152 * C.green + 0.0722 * C.blue) // ITU-R BT.709
#end


Post a reply to this message

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