POV-Ray : Newsgroups : povray.general : QUESTION: Programming: Converting Floats to 255-Integers : QUESTION: Programming: Converting Floats to 255-Integers Server Time
19 Apr 2024 09:39:41 EDT (-0400)
  QUESTION: Programming: Converting Floats to 255-Integers  
From: Sven Littkowski
Date: 27 Apr 2018 13:03:21
Message: <5ae357d9$1@news.povray.org>
I want to develop, as a side product of my Mississippi Paddle Wheel
Riverboat, a small Windows program that can show the various colors of a
Pov-Ray color_map.

Having to use the late after-work evening time before going to bed, as
usual, also as usual my head is already a bit slow and tired. I am
asking around here, how to convert the usual COLOR RGB float values of
POV-Ray for red, green and blue into the integers for color definitions
that go from 0 to 255.

As I say, my head is heavy already and I just cannot get that formula by
myself, what a shame. But that's how it is. Can anyone assist with the
mathematical formula? Thanks.

---
Diese E-Mail wurde von AVG auf Viren geprüft.
http://www.avg.com


Post a reply to this message

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