EasyManuals Logo

Tandy 1000 Basic Reference Manual

Default Icon
411 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #269 background imageLoading...
Page #269 background image
Chawter
10
I
BASIC
Kevwords
POINT/Graphics
Function
POINT
(x,y)
POINT
(action)
Returns the color number
of
a
point on the screen
or
returns the
current physical or world coordinates.
(x,y)
specify the coordinates
of
the point.
x
is the horizontal
point, and
y
is the vertical point. The
x
and
y
coordinates must
be absolute values. If you specify
a
point that is out
of
range,
BASIC returns
a
-1.
See Chapter
8,
“Displaying Color and Graphics,”
for
information
on coordinates
for
the current screen modes.
Action
is one of the following:
0
returns the current physical x-coordinate (horizontal).
1
returns the current physical y-coordinate (vertical).
2
If WINDOW is active, returns the world x-coordinate.
3
If WINDOW is active, returns the world y-coordinate.
When retrieving the color number, POINT returns the
color
number as it
is
defined in the current palette.
Otherwise, returns the physical x-coordinate.
Otherwise, returns the physical y-coordinate.
Example
10
SCREEN
2
20
IF POINT
(1
,1)<>0 THEN PRESET (1
,I
1
ELSE PSET
(1
,I)
If point
1,l
is any foreground color, PRESET changes it
to
the
background color.
If
the point
is
the
background
color,
PSET
changes it to Color
3.
10
SCREEN 1
20
X=POINT (0):Y=POINT(I)
30 PRINT
X,Y
BASIC prints the coordinates
of
the graphics cursor.
267

Table of Contents

Other manuals for Tandy 1000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tandy 1000 and is the answer not in the manual?

Tandy 1000 Specifications

General IconGeneral
ProcessorIntel 8088
Processor Speed4.77 MHz
RAM128 KB (expandable to 640 KB)
Operating SystemMS-DOS 2.11
ManufacturerTandy Corporation
Release Year1984
StorageSingle or double 5.25" floppy disk drive (360 KB), optional hard drive
SoundTandy 3-voice sound
PortsParallel, Serial
GraphicsCGA (Color Graphics Adapter)
Graphics Modes320x200, 640x200

Related product manuals