2011-11-21 02:58:05 +00:00
|
|
|
.TH PAINT 1
|
|
|
|
.CT 1 graphics
|
|
|
|
.SH NAME
|
|
|
|
paint \- create image files by drawing with a mouse or other pointing device
|
|
|
|
.SH SYNOPSIS
|
2012-07-18 23:00:23 +00:00
|
|
|
.B paint
|
|
|
|
[
|
|
|
|
.I file
|
|
|
|
]
|
2011-11-21 02:58:05 +00:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.I Paint
|
2012-07-19 14:13:33 +00:00
|
|
|
displays a canvas upon which can be drawn lines using the mouse holding
|
2012-07-18 23:00:23 +00:00
|
|
|
down buttons 1 or 2 for foreground or background color. The canvas
|
2012-07-19 14:13:33 +00:00
|
|
|
may be moved with button 3. Colors and brush sizes may be selected by
|
2012-07-18 23:00:23 +00:00
|
|
|
clicking on the palette at the bottom of the screen with buttons 1 or 2.
|
2011-11-21 02:58:05 +00:00
|
|
|
.PP
|
2012-07-18 23:00:23 +00:00
|
|
|
If the optional
|
|
|
|
.I file
|
|
|
|
argument is specified, then it is read and used as the canvas.
|
|
|
|
.I Paint
|
|
|
|
only recognizes Plan 9 bitmap format (see
|
|
|
|
.IR image (6)).
|
|
|
|
.PP
|
2012-07-19 14:13:33 +00:00
|
|
|
A number of immediate keyboard commands are recognized:
|
2012-07-18 23:00:23 +00:00
|
|
|
.TP
|
|
|
|
.B u
|
|
|
|
Undos the previous action.
|
2012-03-02 04:54:45 +00:00
|
|
|
.TP
|
2012-07-22 14:33:42 +00:00
|
|
|
.B c
|
|
|
|
Clears the canvas with the background color.
|
2012-07-18 23:00:23 +00:00
|
|
|
.TP
|
|
|
|
.B 1-9
|
|
|
|
Select brush size.
|
|
|
|
.TP
|
2012-07-22 14:33:42 +00:00
|
|
|
.B f
|
|
|
|
Select flood fill brush.
|
|
|
|
.TP
|
2012-07-18 23:00:23 +00:00
|
|
|
.B +
|
|
|
|
Doubles magnification.
|
|
|
|
.TP
|
|
|
|
.B -
|
|
|
|
Halves magnification.
|
2011-11-21 02:58:05 +00:00
|
|
|
.TP
|
2012-07-18 23:00:23 +00:00
|
|
|
.B esc
|
|
|
|
Centers the canvas and resets magnification.
|
|
|
|
.PP
|
|
|
|
Hitting any other key on the keyboard shows a command prompt
|
2012-07-19 14:13:33 +00:00
|
|
|
where the following commands may be entered:
|
2012-07-18 23:00:23 +00:00
|
|
|
.TP
|
|
|
|
.BI r file
|
|
|
|
Reads the canvas from
|
|
|
|
.I file.
|
|
|
|
.TP
|
|
|
|
.BI w file
|
|
|
|
Writes the canvas to
|
|
|
|
.I file.
|
2012-02-28 02:15:37 +00:00
|
|
|
.TP
|
2012-07-18 23:00:23 +00:00
|
|
|
.BI < command
|
|
|
|
Executes
|
|
|
|
.I command
|
2012-07-19 14:13:33 +00:00
|
|
|
and reads the canvas from its standard output.
|
2012-07-18 23:00:23 +00:00
|
|
|
.TP
|
|
|
|
.BI > command
|
|
|
|
Executes
|
|
|
|
.I command
|
2012-07-19 14:13:33 +00:00
|
|
|
and writes the canvas to its standard input.
|
2012-07-18 23:00:23 +00:00
|
|
|
.TP
|
|
|
|
.BI | command
|
2012-07-19 14:13:33 +00:00
|
|
|
Transforms the canvas by piping it thru
|
2012-07-18 23:00:23 +00:00
|
|
|
.I command.
|
2011-11-21 02:58:05 +00:00
|
|
|
.TP
|
|
|
|
.B q
|
2012-07-18 23:00:23 +00:00
|
|
|
Quits the program.
|
2011-11-21 02:58:05 +00:00
|
|
|
.SH SOURCE
|
|
|
|
.B /sys/src/cmd/paint.c
|
|
|
|
.SH "SEE ALSO"
|
2012-07-18 23:00:23 +00:00
|
|
|
.IR resample (1),
|
|
|
|
.IR rotate (1),
|
|
|
|
.IR crop (1),
|
|
|
|
.IR jpg (1),
|
|
|
|
.IR page (1),
|
2011-11-21 02:58:05 +00:00
|
|
|
.IR image (6)
|