REM I like too much
to use the block code so in the place
_TITLE "Scroller Circle vs Line vs Fillcircle, press ESC to quit" stringa = " QB64 and QB64 community are wonderful "
stringa2 = stringa
PRINT stringa2
' here we have the info to draw led letters ShowString stringa2
stringa2
= RIGHT$(stringa2
, Astr
- 1) + LEFT$(stringa2
, 1) _LIMIT 7 '<----- increase here if you want a faster scroller
kPoint = (c - 1) * 8
kDimension = 10
hLetter = 10
lLetter = 50
lCol~& = Blu
'fillcircle manner
printletterC2 kPoint, kDimension, hLetter, lLetter, lCol~&
kDimension = 12
hLetter = 10
lLetter = 300
lCol~& = Red
' circle + paint manner
printletterC kPoint, kDimension, hLetter, lLetter, lCol~&
kDimension = 5
hLetter = 10
lLetter = 200
lCol~& = White
' line manner
PrintLetterL kPoint, kDimension, hLetter, lLetter, lCol~&
SUB PrintLetterL
(kpoi
, dimension
, hlet
, llet
, lC~&
) FOR a
= kpoi
TO (kpoi
+ 7) ' horizonthal position on the raw FOR b
= 1 TO 13 ' vertical position on the raw IF POINT(a
, b
) <> Black
THEN LINE (hlet
+ (a
* dimension
), llet
+ (b
* dimension
))-(hlet
+ (a
* dimension
) + dimension
, llet
+ (b
* dimension
) + dimension
), lC~&
, BF
SUB printletterC
(kPoi
, Dimension
, hLet
, lLet
, lC~&
) FOR a
= kPoi
TO (kPoi
+ 7) ' horizonthal position on the raw FOR b
= 1 TO 13 ' vertical position on the raw
SUB printletterC2
(kPoi
, Dimension
, hLet
, lLet
, lC~&
) FOR a
= kPoi
TO (kPoi
+ 7) ' horizonthal position on the raw FOR b
= 1 TO 13 ' vertical position on the raw IF POINT(a
, b
) <> Black
THEN CircleFill
(hLet
+ (a
* Dimension
)), (lLet
+ (b
* Dimension
)), INT(Dimension
/ 2), lC~&
' 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