Class used to specify the light source information for POV-Ray images. More...
Public Member Functions | |
| LightSource () | |
| Constructor to create a light source and initialise the location and colour vector properties. More... | |
| void | setLocation (double x, double y, double z) |
| Set the location of this light source in the image. More... | |
| void | setColor (float r, float g, float b) |
| Sets the value of this vector property to reflect a colour, specified in red, green, and blue values. More... | |
| String | toString () |
| Represents the information about the lightsource as a string. More... | |
Class used to specify the light source information for POV-Ray images.
Class used to specify the light source information for POV-Ray images
| povray.LightSource.LightSource | ( | ) |
Constructor to create a light source and initialise the location and colour vector properties.
Constructor to create a light source and initialise the location and colour vector properties
| void povray.LightSource.setColor | ( | float | r, |
| float | g, | ||
| float | b | ||
| ) |
Sets the value of this vector property to reflect a colour, specified in red, green, and blue values.
Sets the value of this vector property to reflect a colour, specified in red, green, and blue values
| r | The amount of red in the colour required |
| g | The amount of green in the colour required |
| b | The amount of blue in the colour required |
| void povray.LightSource.setLocation | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
Set the location of this light source in the image.
Set the location of this light source in the image
| x | Double value X coordinate |
| y | Double value Y coordinate |
| z | Double value Z coordinate |
| String povray.LightSource.toString | ( | ) |
Represents the information about the lightsource as a string.
Represents the information about the lightsource as a string
1.8.3.1