PenColor

HC Graphics Pen Queries PenColor
PenMode PC

PenColor
PC


outputs a color number, a nonnegative integer that is associated with a particular color by the hardware and operating system.

Examples:

setpc 0
pc		;-16777216  ;-)
hex pc		;FF000000  ;-)
reRGBA pc		;[0 0 0 1] ;-)
setpc 4
pc		;-16776961  ;-)
hex pc		;FF0000FF  ;-)
reRGBA pc		;[1 0 0 1] ;-)

References:

PenMode PC