Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_shadow() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_SHADOW()

 DESCRIPTION

 C_SHADOW() draws a shadow around an object that is already
 displayed on the screen.  There are four types of shadows that can
 be drawn which determine where the shadow appears around the
 object.  The color and the characters used to draw the shadow may
 be specified to create many different styles.

 SYNTAX

 C_SHADOW(st_row, st_col, end_row, end_col [,type] [,color] [,hchar] [,vchar])

 PARAMETERS

 st_row (N), st_col (N), end_row (N), and end_col (N) define the
 upper left and lower right coordinates of the object on the screen
 to draw the shadow around.

 type (N) is the type indicator which determines the position of the
 shadow around the object.  If type is not specified, one (1) is
 used.  The shadow types are as follows:

 TYPE   SHADOW POSITION
 ----   ---------------
 1      Right side and bottom
 2      Right side and top
 3      Left side and bottom
 4      Left side and top

 color (C) is the color to draw the shadow.  If color is not
 specified, the default of black is used.

 hchar (C) is the single character used to draw the horizontal part
 (top and bottom) of the shadow.  If hchar is not specified, the
 default of the space character (ASCII 32) is used.

 vchar (C) is the single character used to draw the vertical part
 (right and left sides) of the shadow.  If vchar is not specified,
 the default of the space character (ASCII 32) is used.

 RETURNS

 There is no return value.

 EXAMPLES

 setcolor("W/B")           && Set color to white on blue
 clear                     && Clear the screen with blue background
 setcolor("W/R")
 @ 10,10 clear to 20,70    && Draw a double box in white on red
 @ 10,10 to 20,70 double
 c_shadow(10,10,20,70)     && Shadow the right side and bottom of
                           && the box in a black shadow color


See Also: C_SHADOWIT() C_XSHADOW()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson