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_xshadow() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_XSHADOW()

 DESCRIPTION

 C_XSHADOW() draws a shadow around an object that is already
 displayed on the screen.  The function draws a non-destructive
 shadow so the characters on the screen, where the shadow is drawn,
 are not overwritten.  There are two types of shadows that can be
 specified which determine where the shadow appears around the object.

 SYNTAX

 C_XSHADOW(st_row, st_col, end_row, end_col [,type] [,color_code])

 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, two (2) is
 used.  The shadow types are as follows:

 TYPE   SHADOW POSITION
 ----   ---------------
 1      Left side and bottom
 2      Right side and bottom

 color_code (N) is the numeric color code to draw the shadow.  Refer
 to Appendix E for a list of color codes.  If color is not
 specified, the default of black 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
 @ 12,1 say replicate("X",78)    && Write text to show non-
 @ 14,1 say replicate("X",78")   && destructive shadow.
 @ 16,1 say replicate("X",78")   &&
 @ 18,1 say replicate("X",78")   &&

 setcolor("W/R")
 @ 10,10 clear to 20,70      && Draw a double box in white on red
 @ 10,10 to 20,70 double
 c_xshadow(10,10,20,70)      && Shadow the right side and bottom of the
                             && box in a black shadow color without
                             && overwriting characters on the screen


See Also: C_SHADOWIT() C_SHADOW()

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