POV-Ray : Newsgroups : povray.newusers : #declare/Object coloring question : Re: #declare/Object coloring question Server Time
4 Nov 2024 13:00:06 EST (-0500)
  Re: #declare/Object coloring question  
From: Brent G
Date: 17 Sep 2003 15:46:51
Message: <3f68ba2b$1@news.povray.org>
Tim Nikias v2.0 wrote:

> Hm. Then I'd make it a macro:
> 
> #macro MyTorus_Macro(Light_Color)
> #declare MyTorus=[...]
> [In the lightsource, put "rgb Light_Color"]
> object{MyTorus}
> #end
> 
> MyTorus_Macro(Blue)
> MyTorus_Macro(Orange)
> 
> If you'd want to move it around, you can just add
> another parameter to the macor:
> 
> #macro MyTorus_Macro(Light_Color,Position)
> #declare MyTorus=[...]
> object{MyTorus translate Position}
> #end
> 
> Regards,
> Tim

Ah, thanks, that works wonderfully :) (yay my (with some help) macro)


Post a reply to this message

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