From Xojo Documentation


WebGraphics.Shadow(Size As Integer, Col As Color, OffsetX As Integer, OffsetY As Integer)

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


Draws a blue rectangle with a red shadow:

g.Shadow(12, &cff0000, 3, 3)
g.DrawingColor = &c0000ff
g.FillRectangle(10, 10, 100, 100)