Table of Contents

Advertisement

VIEW
Purpose
VIEW sets the view port.'
Form
VIEW(<X1>,<Y1>)-(<X2>,<Y2>)[,[<area color>]
[,<border color>]]
Description
(1) <X1>, <X2>, <Y1>, and <Y2> are the respective x and
y coordinates on the screen coordinate system, and can
be written using numeric expressions. After this in­
struction has been issued, the area surrounded by a
rectangle with points (<X1>, <Y1>) and (<X2>, <Y2>) as
opposite angles is set as the viewport on the screen to
which the window in the world coordinate system is
displayed.
(2) When <area color> is specified, the inside of the
viewport is cleared using <area color>.
When <border color> is specified, the viewport frame is
drawn using <border color>. Both <area color> and
<border color> are specified using color codes, which
can be written using numeric expressions.
(3) The VIEW instruction only sets the display area on
the screen. It does not affect the area outside the
viewport.
(JJ) The initial value of the viewport is (0,0)-
(639»199)» and is set throughout the entire screen.
3-125

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents