POV-Ray : Newsgroups : povray.general : default values : default values Server Time
5 Nov 2024 13:24:06 EST (-0500)
  default values  
From: Alan Walkington
Date: 6 Apr 2003 22:03:51
Message: <3e90dc87@news.povray.org>
In a macro, is it possible to define default values for parameters, so they
can be skipped during instantiation?

#macro Laser (Color = 'Red')
  body here
#end

so that calling:

Laser() would produce a Red laser,
Laser(Green) would produce a Green laser, and so forth?
This doesn't work, of course, but some other way?

Alan Walkington


Post a reply to this message

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