POV-Ray : Newsgroups : povray.general : color conversion : color conversion Server Time
24 Apr 2024 03:51:27 EDT (-0400)
  color conversion  
From: David Kraics
Date: 3 Aug 2022 12:35:00
Message: <web.62eaa29175d93abf1c1b6180a57e0@news.povray.org>
Hello. I need help with something. For years I believed that to convert a color
from 255 scale to decimal, you just divide the rgb number by 255. But I've come
to realize that isn't how to do it. I'm trying to convert a shade of green on a
photo. The numbers weren't coming out right. I tested my method on colors in the
colors.inc file and came out with different results. For instance, I reverse
converted Gray50 (which is .5,.5,.5) and came up with 127.5. I rendered a block
with the color, and then used Paint Shop Pro to grab the rgb color, from the
produced picture, and it reported 177. I tried doing a google search for a
converter, but they all wanted to convert the three rgb numbers into a single
decimal number. So how do I convert RGB numbers into decimals to use in POV=ray?


Post a reply to this message

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