change text color using PCL5 or 6 command strings

Posted on | March 10, 2017 | No Comments

Hello,

I am trying to change the color from black to red and back to black in order to highlight special instructions. The documentation is very hard to understand. Here is a sample of my code:

PRINT “THIS IS A TEST – NORMAL PRINT”
PRINT
PRINT CHAR(27):”*r3U”: ;* 3 PLANE RGB PALETTE
PRINT CHAR(27):”*v255A”: ;* FIRST COLOR
PRINT CHAR(27):”*v0B”: ;* 2ND COLOR
PRINT CHAR(27):”*v0C”: ;* 3RD COLOR
PRINT CHAR(27):”*v1I”: ;* ASSIGN PALLETE# 1
PRINT CHAR(27):”&p1S”: ;* SELECT PALETTE 1
PRINT “THIS IS A TEST – RED CHARACTERS”
PRINT
PRINT
PRINT CHAR(27):”*v0A”: ;* FIRST COLOR
PRINT CHAR(27):”*v0B”: ;* 2ND COLOR
PRINT CHAR(27):”*v0C”: ;* 3RD COLOR
PRINT CHAR(27):”*v2I”: ;* ASSIGN PALETTE# 2
PRINT CHAR(27):”&p2S”: ;* SELECT PALETTE 2
PRINT “THIS IS A TEST – BACK TO BLACK”
PRINT
PRINT
PRINT CHAR(27):”&p0C”: ;* CLEAR PALETTES
PRINT CHAR(27):”&p1C”: ;* CLEAR PALETTES
PRINT “THIS IS A TEST 1 2 3″
PRINT CHAR(27):”E” ;* RESET

Please point out what I am missing or doing wrong. Thanks, Jeff

If you enjoyed this post, make sure you subscribe to my RSS feed!

This post was submitted by Jeffrey Kaufman.

Comments

Leave a Reply

You must be logged in to post a comment.