WebGraphics.Shadow
From Xojo Documentation
Method
WebGraphics.Shadow(Size As Integer, Col As Color, OffsetX As Integer, OffsetY As Integer)
New in 2012r1
Supported for all project types and targets.
New in 2012r1
Supported for all project types and targets.
Renders shadows for all drawing commands that follow
- Size: How much to blur the shadow
- Col: Color of the shadow
- OffsetX: How far to move the shadow to the right
- OffsetY: How far to move the shadow downward
Example
Draws a blue rectangle with a red shadow:
g.Shadow(12, &cff0000, 3, 3)
g.ForeColor = &c0000ff
g.FillRect(10, 10, 100, 100)
g.ForeColor = &c0000ff
g.FillRect(10, 10, 100, 100)