POV-Ray : Newsgroups : povray.newusers : Colour conversion - HTML to RGB : Re: Colour conversion - HTML to RGB Server Time
30 Jul 2024 02:25:25 EDT (-0400)
  Re: Colour conversion - HTML to RGB  
From: Warp
Date: 3 Nov 2004 13:52:52
Message: <41892904@news.povray.org>
David Robinson <tdf### [at] ezrscom> wrote:
> No wait, I got that wrong. After running a few values through, a lot of
> colours seem to come out as white, so it must be a maths thing...?

  That's because there really was a bug in my code. I forgot a /255.
The last line should be:

<int(value/65536), mod(int(value/256), 256), mod(value,256)>/255

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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