Function newlight
#include <macaw3d.h>int newlight(const char *kind, double radius, double strength);
Makes a light. A sun lights everything from far away and shines the way it faces, so turn it with rotate3d. A lamp lights things near where you put it.
Parameters
kindconst char *"sun"or"point"(a lamp).NULLmakes a sun.radiusdouble- For a lamp, how far its light reaches, in world units. 0 or less: 8.
strengthdouble- How bright it is. 0 or less: 0.75 for a sun, 1.2 for a lamp.
Returns int
The new light's number.
In Making things, with newcamera.