Commander X16 BASIC Tutorial: Lissajous Curves

  Рет қаралды 273

George's Channel

George's Channel

15 күн бұрын

"Lissajous Curves"
A codereview of this small BASIC Program for the Commander X16.
The programm is easy portable to any other Basic dialect of any 8-/16-bit homecomputer.
Code:
10 REM ******************************
11 REM ** LISSAJOUS CURVES - X16 **
12 REM ******************************
15 CLS: SCREEN$80: COLOR5,0: GOSUB 99
20 C=1:DX=35: DY=35: PI=3.1415926535
25 FOR A=1 TO 4
30 FOR B=1 TO 3
35 COLORC,0: C=C+1
40 FOR T=0 TO 2*PI STEP .02
45 X=DX*(2*A-1)+DX*SIN(A*T+T+1)*.75+15
50 Y=DY*(2*B-1)+DY*SIN(B*T+T)*.75+15
55 IFT=0 THENPSETX,Y,C:XS=X:YS=Y:GOTO65
60 LINE XS,YS,X,Y,C: XS=X: YS=Y:
65 NEXT T, B, A
70 GET A$: IF A$="" THEN GOTO 70
75 GOSUB 99: COLOR5,0: CLS: LIST: END
99 FOR I=0 TO 239: LINE0,I,319,I,0:NEXT I:RETURN
#lissajous #basic #commanderx16 #x16 #retro #programming #commodore #apple #atari #sinclair #c64 #amiga #retrocomputing #codereview #retrographics #computerscience #techeducation #digital art

Пікірлер: 7
@pburdick7
@pburdick7 13 күн бұрын
Well done!
@GeorgesChannel
@GeorgesChannel 13 күн бұрын
Thank you for watching!
@LearnAgon
@LearnAgon 9 күн бұрын
Amazing work 🎉
@GeorgesChannel
@GeorgesChannel 9 күн бұрын
Thanks. I did a version with dynamic col and row count.
@antonjoly9601
@antonjoly9601 12 күн бұрын
The result is Beautiful! It's pronounced Lissazhou.
@GeorgesChannel
@GeorgesChannel 12 күн бұрын
Thanks for the correction. I should have looked it up or ask you.
@antonjoly9601
@antonjoly9601 12 күн бұрын
​@@GeorgesChannellike this linear code review. It's kind of fascinating. And the result is Beautiful! Or you can use the same J as in Jungle 😊
React vs Angular vs Vue vs Svelte vs SolidJS | E2 Code & Curiosity Podcast
32:35
Maximilian Schwarzmüller
Рет қаралды 12 М.
Teenagers Show Kindness by Repairing Grandmother's Old Fence #shorts
00:37
Fabiosa Best Lifehacks
Рет қаралды 28 МЛН
NO NO NO YES! (40 MLN SUBSCRIBERS CHALLENGE!) #shorts
00:27
PANDA BOI
Рет қаралды 124 МЛН
Barriga de grávida aconchegante? 🤔💡
00:10
Polar em português
Рет қаралды 28 МЛН
The ARM chip race is getting wild… Apple M4 unveiled
4:07
Fireship
Рет қаралды 607 М.
My Top 7 Reasons Why Retrocomputing Is So Popular
4:17
George's Channel
Рет қаралды 240
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,7 МЛН
Corel Linux - The (Word)Perfect Operating System
25:40
Michael MJD
Рет қаралды 70 М.
Compiling MS-DOS 4.0 using DOSbox & Qemu
17:59
Neozeed
Рет қаралды 2,7 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 744 М.
How Godot's Transform3D Type Works
24:16
Majikayo Games
Рет қаралды 295
When You Ask the Intern to Review Your Code
4:01
Nicholas T.
Рет қаралды 473 М.
How Neuralink Works 🧠
0:28
Zack D. Films
Рет қаралды 25 МЛН
Phone charger explosion
0:43
_vector_
Рет қаралды 44 МЛН
Теперь это его телефон
0:21
Хорошие Новости
Рет қаралды 477 М.