Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

HP-GL/2 color fill patterns

HP-GL/2 color fill patterns

HP-GL/2 color fill patterns

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

Replies continue below

Recommended for you

RE: HP-GL/2 color fill patterns


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


RE: HP-GL/2 color fill patterns

I don't know. I've never heard of a brush in a GL context, and I don't recall a reference in the PCL5C manual. I will look again.


Jim Asman

RE: HP-GL/2 color fill patterns


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?

RE: HP-GL/2 color fill 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

RE: HP-GL/2 color fill patterns

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close