From Xojo Documentation

Revision as of 19:13, 13 November 2020 by Gperlman (talk | contribs) (Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)