Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Escape! V3.0 - <b>hpshadow()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
hpShadow()

Print a string with a shadow effect.


Syntax

hpShadow(<cString> [,<nShade> [,<cThickness]])


Parameters

<cString>
The text that is to be shadowed.

<nShade>
The percent of gray shading to use for the shadow.
100% shades work best with shaded fonts (see
hpShade()), while shades between 30 and 90% work
best for normal fonts.  There are eight shading levels.
To specify a shade use any value from 1 to 100.  If
omitted, <nShade> will default to 50.  See "Appendix B -
Shades and Fill Patterns" for a description of the
different shading levels.

<nThickness>
The thickness of the shadow in dots.  There are 300
dots in an inch.  In most cases, the default of 7 is fine;
however, when using large fonts, you may want to
increase the thickness of the shadow.


Returns

<c>
Shadowed string.


Remarks

Use hpShadow() anytime you desire a shadow effect on your fonts.  Use
hpShadow() to really make your titles stand out.  For a great effect, try
using hpShade() in combination with hpShadow().


Support By

HP Laserjet Series IIIP, III, IIID, IIIsi, and other printers supporting
HPPCL 5.


Example

hpConfig('LETTER','P',1,'III')
hpSetFont('UNIVERS','I','18')
@ 1,0 SAY hpShadow('This Text is shadowed', 60)
?? hpShadow('So is this', 80)
hpAtSay(10, 10, hpShadow('And even this!', 50))

hpShadow() also works with the other PCL5 special effect functions.

?? hpShadow( hpShade('Shadowed & Shaded', 80), 100)

See Also: hpPattern() hpReverse() hpShade()

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