POV-Ray : Newsgroups : povray.newusers : Dealing with colours : Re: Dealing with colours Server Time
29 Jul 2024 10:18:35 EDT (-0400)
  Re: Dealing with colours  
From: helge h
Date: 15 Mar 2006 07:40:00
Message: <web.44180a532ff0c10f1c6902970@news.povray.org>
Mike Williams <nos### [at] econymdemoncouk> wrote:

> Most 2d paint programs work with integer values for the colour
> components, which range from 0 to 255. To convert values like that to
> POV floating point components, divide by 256.

A tiny correction: you must divide by 255, not 256. The highest value is
255, and that corresponds to 1.0.

H


Post a reply to this message

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