From the collection

BASIC CODE - DRAW SINUS WITH CHARACTERS

BASIC CODE - DRAW SINUS WITH CHARACTERS
From the personal collection

About this item

I created this oneliner after I saw a demo on a plot function added to the Basic interpreter. I was thinking this is something I needed to try just using the standard functions.
To have more understanding on the oneliner I also have the more readable version here that can be copied directly into the vice commodore emulator if you want.

The actual one-line miniature Basic code as typed in on the commodore could just fit in oneline using the petcii characters.

10 for n=0 to 3*3.1415step0.05
20 x=int(4.2*n):y=int(12*sin(n))
25 o=y*40+x+(12*40):poke1024+o,81:poke55296+o,1
30 next n

Collection details

PlatformCommodore 64 BASIC
← Back to BASIC Programs