GOTO loader
'erase this row for full program function after first run :)
' in this block - draw something (bigger image is better) to screen
' -----------------------------------------------------------------
OMX = mx
OMY = my
B(i).X = mx
B(i).Y = my
i = i + 1
CircleFill mx, my, 5, &HFFFFFF00
' --------------------------------------------------------------------
' in this block: Save your work as compressed binary file to harddrive
' --------------------------------------------------------------------
_MEMGET Save
, Save.OFFSET
, uncompress$
' ---------------------------------------------------------------------
' RESET ALL VALUES TO ZERO
' ------------------------
loader:
i = 0
' Load Values from file to memory, decompress it and palce it back to array
' -------------------------------------------------------------------------
GET ff
, , Load$
' compressed string _MEMPUT ArrMEM
, ArrMEM.OFFSET
, Uncompressed$
i = i \ 4
ii = 0
fill = fill + 4
ii = ii + 1
'---------------------------------------------------------------------------
'-------------- DRAW IT ------------
lenght = 1000
j = 0
Shift = 255 / lenght
alfa = 0
IF sm
> -1 AND sm
< i
- 1 THEN CircleFill B
(sm
).X
, B
(sm
).Y
, 5, _RGBA32(0, 0, 20, alfa
) alfa = alfa + Shift
j = j + 1
k = k + 1
IF k
<= i
- 1 THEN CircleFill B
(k
).X
, B
(k
).Y
, 5, &HFFFF0000 j = 0
k = 0
' 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