-
Notifications
You must be signed in to change notification settings - Fork 29
UI.makeShadow
kerrishotts edited this page Apr 4, 2013
·
2 revisions
(part of UI)
Returns: shadow
Parameters: visibility (boolean), color (color), offset (point), [blur (number), [spread (number), [type (string) ] ] ]
Returns a shadow object with the following form:
{
visible: visibility,
color: (copy of) color,
offset: (copy of) offset,
blur: blur (or 0),
spread: spread (or 0),
type: type (or "")
}
If blur
or spread
is not specified, 0
is assumed. If type
is not specified, an empty string is assumed. The only other valid value for type
is "inset".
Note: When applying to a CSS element, the visible
property will define whether the shadow is applied or inherit
is used instead (visible
=false).
var aShadow = UI.makeShadow ( true, UI.COLOR.blackColor(), UI.makePoint (0, -1), 1 );
0.3 Introduced; Docs Valid