home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
PLOYSTAR.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
3KB
|
55 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME POLYSTAR.DMO ║ by ╘════════════════─ ║ ║
│ │ ║ Don Schullian, Jr. ║ ║
│ ╘══════════════════════════╝ ║ ║
│ A license is hereby granted to the holder to use this source code in ║ ║
│ any program, commercial or otherwise, without receiving the express ║ ║
│ permission of the copyright holder and without paying any royalties, ║ ║
│ as long as this code is not distributed in any compilable format. ║ ║
│ IE: source code files, PowerBASIC Unit files, and printed listings ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
$endif
'.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
'┌────────────────────────────
$INCLUDE "DAS-NB03.INC" '│ math lib
$INCLUDE "DAS-NBV1.INC" '│ graphics lib
$INCLUDE "PUBLICS .INC" '│ public variables pPi#
'│
SCREEN 12 '│
GraphicSETUP '│
CLS '│
'│
DIM tIn AS PolygonTYPE '│ inner circle
DIM tOut AS PolygonTYPE '│ outter circe
'│
tin.X = 320 '│
tIn.Y = 240 '│
tIn.Radius = 57 '│
tIn.Aspect = 1 '│
tIn.StartDeg = 36 '│ side at the top
tIn.Points = 5 '│
tIn.Pmode = 2 '│
tIn.Colour = 14 '│
'│
tOut.X = 320 '│
tOut.Y = 240 '│
tOut.Radius = 150 '│
tOut.Aspect = 1 '│
tOut.StartDeg = 0 '│ point at the top
tOut.Points = 5 '│
tOut.Pmode = 2 '│
tOut.Colour = 14 '│
'│
DrawSTAR tIn, tOut '│ draw the star
DELAY 2 '│
tIn.Pmode = 3 '│ change put-mode
Draw2Dpolygon tIn '│ draw pentagons
CIRCLE ( tOut.X, tOut.Y ), tOut.Radius, 15 '│ use data for circles too
'└───────────────────────────