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

Print a string with a screened effect


Syntax

hpShade(<cString> [,<nShade>])


Parameters

<cString>
The text that is to be screened.

<nShade>
The percent of gray shading to use as the screen.
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.


Returns

<c>
Screened string.


Remarks

Use hpShade() anytime you desire a gray shaded effect with your fonts.
hpShade() is perfect when you need to add some flair to your printouts,
but your choice of fonts is limited.  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 hpShade('This Text is shaded', 60)
?? hpShade('So is this', 80)
hpAtSay(10, 10, hpShade('And even this!', 50))
hpShade() also works with the other PCL5 special effect functions.
?? hpReverse( hpShade('Reversed & Shaded', 60))
?? hpShadow( hpShade('Shadowed & Shaded', 80), 100)

See Also: hpPattern() hpReverse() hpShadow()

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