POV-Ray : Newsgroups : povray.newusers : conversion : Re: conversion Server Time
28 Mar 2024 20:19:03 EDT (-0400)
  Re: conversion  
From: kurtz le pirate
Date: 5 Aug 2022 13:19:32
Message: <62ed5124$1@news.povray.org>
On 03/08/2022 18:50, David Kraics wrote:
> How do I convert from the 255 scale rgb numbers to decimal numbers used by
> POV-Ray? Apparently dividing the number by 255 doesn't work.
> 

What do you mean by "number" ?


Alain answered precisely and we can add that :
if c = red 0..255 green 0..255 blue 0..255, then the division of c/255
will give well the color with the values between 0.0 and 1.0.

And "pigment { color c }" will be interpreted correctly by POVRay



-- 
Kurtz le pirate
Compagnie de la Banquise


Post a reply to this message

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