addCone Method

MS Office DHTML, HTML & CSS

addCone Method


Adds a cone light to the light filter effect object to cast a directional light on the page.

Syntax

object.filters.light.addCone(iX1, iY1, iZ1, iX2, iY2, iRed, iGreen, iBlue, 
    iStrength, iSpread)

Parameters

iX1Required. Integer that specifies the left coordinate of the light source.
iY1Required. Integer that specifies the top coordinate of the light source.
iZ1Required. Integer that specifies the z-axis level of the light source.
iX2Required. Integer that specifies the left coordinate of the target light focus.
iY2Required. Integer that specifies the top coordinate of the target light focus.
iRedRequired. Integer that specifies the red value, ranging from 0 (lowest saturation) to 255 (highest saturation).
iGreenRequired. Integer that specifies the green value, ranging from 0 (lowest saturation) to 255 (highest saturation).
iBlueRequired. Integer that specifies the blue value, ranging from 0 (lowest saturation) to 255 (highest saturation).
iStrengthRequired. Integer that specifies the intensity of the light filter, with values ranging from 0 (lowest intensity) to 100 (highest intensity).
iSpreadRequired. Integer that specifies the angle, or spread, between the vertical position of the light source and the surface of the visual object. The spread can be from 0 to 90 degrees. Smaller spread values produce a smaller-shaped cone of light; larger spread values produce an oblique oval or circle of light.

Return Value

No return value.

Remarks

The cone light fades with distance from the target x,y position. The light displays a hard edge at the near edge of its focus and fades gradually as it reaches its distance threshold.

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.
light

Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.