Difference between revisions of "WebGraphics.Shadow"

From Xojo Documentation

m
Line 15: Line 15:
 
* OffsetY: How far to move the shadow downward
 
* OffsetY: How far to move the shadow downward
 
}}
 
}}
 
  
 
== Example ==
 
== Example ==

Revision as of 16:18, 11 August 2017

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.

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)