EasyManua.ls Logo

Kaypro 10 - Drawing Routines (Circles, Rectangles, etc.)

Kaypro 10
155 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
)
In
the
S-BASIC
graphics
package (graphics.bas), there are several procedures
that
allow
the
user
to
draw
complicated
figures
with
just
one
command.
These
are
routines
for
drawing:
Circles:
require three parameters:
1)
the
vertical
coordinate
of
the
center
of
the
circle,
2)
the
horizontal
coordinate
of
the center,
3)
the
radius
of
the circle.
Rectangles:
have
four
parameters:
1)
the
vertical
coordinate
of
the
upper
left
corner,
2)
the
horizontal
coordinate
of
that
corner,
3)
the
height,
4)
and
the
width.
Squares:
need
three
parameters:
1)
the
vertical
coordinate
of
the upper
left
corner,
2)
the
horizontal
coordinate
of
the
upper
left
corner,
3)
and
the
length
of
a side.
Bars:
require
eight
parameters:
1)
the
vertical
coordinate
of
the base
of
the bar,
2)
the
horizontal
coordinate
of
the
base,
3)
the
height,
4)
the
width,
5)
the
depth,
6)
the
interior
of
the bar
filled
or
empty,
This
parameter
should
be:
o for an em
pty
bar,
1
for
a full one.
7)
vertical
illusion
of
depth up
or
down,
-1
for
up
1
for
down
8)
horizontal
illusion
of
depth
left
or
right.
- 1
for
left
1
for
right
70

Related product manuals