SHADOW ​
Adds a shadow to the lines drawn of an object.
Syntax ​
SHADOW [ on | off ] .
Parameters ​
<main-parameter>
(modifier, optional) - Turns the drawing of shadows for lineson
oroff
. The default ison
.
Details ​
This command applies a shadow to any lines drawn after this command, including the outlines of shapes. The shadow is only drawn "underneath" the object and does not apply towards areas filled by the object. It applies for example to the commands LINE
, POINT
, CURVE
, RECTANGLE
, POLYGON
, ELLIPSE
, DRAW_PATH
and other similar commands.
When PEN style:null
is set, then the shadow will not be drawn as it is tied to drawing lines, not filling areas.
Drawing a shadow is on by default in a GraphRep.
See Also ​
Examples ​
Various lines showing the shadow settings in different cases.
GRAPHREP
PEN
# Note: SHADOW is on by default.
LINE y1:0cm x2:3cm y2:0cm
SHADOW off
LINE y1:0.2cm x2:3cm y2:0.2cm
PEN w:3pt color:"chartreuse"
SHADOW on
LINE y1:0.5cm x2:3cm y2:0.5cm
SHADOW off
LINE y1:0.7cm x2:3cm y2:0.7cm
PEN w:2pt color:"crimson"
SHADOW on
LINE y1:1cm x2:3cm y2:1cm
SHADOW off
LINE y1:1.2cm x2:3cm y2:1.2cm
Example with three rectangles showing how SHADOW
behaves in relation to drawn shapes and the background. The rectangle in the center is not filled with a color, instead it shows through the other two rectangles behind it.
GRAPHREP
FILL color:"$f8f8f8"
SHADOW off
# Top-left rectangle.
RECTANGLE w:2cm h:1cm
SHADOW on
# Bottom-right rectangle.
RECTANGLE x:1cm y:0.5cm w:2cm h:1cm
# Center rectangle, making filling transparent.
FILL style:null
RECTANGLE x:0.5cm y:0.25cm w:2cm h:1cm
Versions and Changes ​
Available since ADOxx 1.3