plan9port/man/man1/colors.1

57 lines
1.1 KiB
Groff
Raw Normal View History

2005-01-03 06:40:20 +00:00
.TH COLORS 1
.SH NAME
2005-01-13 04:49:19 +00:00
colors, cmapcube \- display color map
2005-01-03 06:40:20 +00:00
.SH SYNOPSIS
.PP
.B colors
[
.B -r
.B -x
]
.PP
2005-01-13 04:49:19 +00:00
.B cmapcube
2005-01-03 06:40:20 +00:00
[
2005-01-13 04:49:19 +00:00
.B -nbw
2005-01-03 06:40:20 +00:00
]
.SH DESCRIPTION
.I Colors
2005-01-13 04:49:19 +00:00
presents a grid showing the colors in the RGBV color map
2005-01-03 06:40:20 +00:00
(see
.MR color (7) ).
2005-01-03 06:40:20 +00:00
.PP
Clicking mouse button 1 over a color in the grid will display the map index for that color,
its
red, green, and blue components,
and the 32-bit hexadecimal color value as defined in
.MR allocimage (3) .
2005-01-03 06:40:20 +00:00
If the
.B -x
option is specified, the components will also be listed in hexadecimal.
.PP
The
.B -r
option instead shows, in the same form, a grey-scale ramp.
.PP
A menu on mouse button 3 contains a single entry, to exit the program.
.PP
2005-01-13 04:49:19 +00:00
.I Cmapcube
presents the same colors but in a 3-dimensional cube.
Dragging with button 1 rotates the cube.
Clicking on a color with button 2
displays the map index for that color.
Clicking button 3 exits.
.PP
The
.B -n
option disables drawing of the color squares.
The
.B -b
2005-01-03 06:40:20 +00:00
and
2005-01-13 04:49:19 +00:00
.B -w
options set the background (default grey)
to black or white.
2005-01-03 06:40:20 +00:00
.SH SOURCE
2005-01-11 17:37:33 +00:00
.B \*9/src/cmd/draw/colors.c
2005-01-03 06:40:20 +00:00
.SH SEE ALSO
.MR color (7)