This is a test of the
Emergency Filtering Network. |
addCone adds a spotlight light source.
Repeat clicks will add additional identical light sources, up to the maximum of 10 for an object.
Note that we can add a light source to a group of objects, as the "Whole cell" button does, by grouping them within a DIV or SPAN.
In this case the "Disable filters" button returns the filter to the unset state so you can start over.
What you should see
Click once on "Apply Light.addCone"

Click once on "Whole cell"
Syntax and Settings
For example, the text above has a cone light source applied in a script with:
In STYLE the filter is first set with:
Then the light source is added with SCRIPT in the form:
This looks like a horrible set of parameters, and I guess I agree that it is! But there is a logic here. Let's look at the meaning of these parameters.
object is the name of the visual object to be lit.
x1, y1, z1 are the coordinates of the light source itself.
x2, y2 are the coordinates of where the light is focused (brightest point).
R, G, B are the color values for the color of the light, from 0 to 255.
strength is an integer for how strong the light is.
spread is an integer for how wide the light puddle will spread, 0 to 90 degrees. This simulates a light source being angled to the page.
More examples
Original
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|