DIM SHARED Users
(1 TO 10) AS Data_Transfer
' array to hold client info
Kolors(1) = Red
Kolors(2) = Blue
Kolors(3) = Yellow
Kolors(4) = Green
Kolors(5) = Orange
Kolors(6) = Purple
Kolors(7) = White
Kolors(8) = Pink
Kolors(9) = Silver
Kolors(10) = Gold
Users(MyHandle).handle = Info.handle
Users(MyHandle).x = Info.x
Users(MyHandle).y = Info.y
PRINT "ERROR: Could not connect to Steve's PC!"
FOR i
= 1 TO 10 'Get an update from where all the clients are at. b = 0
GET #client
, , b
'get the ok signal for transfer IF b
= -1 THEN 'start transfer GET #client
, , Users
(i
) 'then get the data
CircleFill Users
(i
).x
, Users
(i
).y
, 10, Kolors
(Users
(i
).
color)
b = -1
PUT #client
, , Users
(MyHandle
)
' CX = center x coordinate
' CY = center y coordinate
' R = radius
' C = fill color
RadiusError = -Radius
X = Radius
Y = 0
LINE (CX
- X
, CY
)-(CX
+ X
, CY
), C
, BF
RadiusError = RadiusError + Y * 2 + 1
LINE (CX
- Y
, CY
- X
)-(CX
+ Y
, CY
- X
), C
, BF
LINE (CX
- Y
, CY
+ X
)-(CX
+ Y
, CY
+ X
), C
, BF
X = X - 1
RadiusError = RadiusError - X * 2
Y = Y + 1
LINE (CX
- X
, CY
- Y
)-(CX
+ X
, CY
- Y
), C
, BF
LINE (CX
- X
, CY
+ Y
)-(CX
+ X
, CY
+ Y
), C
, BF