Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HP-GL/2 color fill patterns

Status
Not open for further replies.

jlasman

Technical User
Nov 28, 2001
685
0
0
US
Does anyone know a way of producing a shade patten in color in HP-GL/2? This is in a PCL5C context.

It seems that regardless of the current pen color, the shadings are mapped to black.

Any ideas?

Jim Asman
 
Jim

I'd need to look this up, but shouldn't you be setting BRUSH colour for the fill, rather than PEN colour?

C.
 
Jim

My mistake! Pens only.

I'm not very familiar with HP-GL/2; I just assumed that it would use brush as well as pen (like PCL XL does).

Perhaps colour only works with user-defined patterns?
 
My test WAS a user defined pattern, and I also tried a builtin, but to no avail.

Interestingly, if you create the shading in PCL, user defined or builtin, it respects the foreground color specified. No problem then on rectangles, my current issue, but it would be difficult then on an irregular shape.

Hopefully, I may never encounter it. Thanks for the input.

Jim Asman
 
I figured it out.

The salvation lies in the SV(screened vector) command.

On a user defined HP-GL/2 raster fill pattern, the SV command has an option whereby you can specify(indirectly) the pen to use to print the shading.

Jim Asman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top