Frequently Asked Question
How do I create graphics and colors in BASIC?
Zadnji ažurirao 1 dana prije
Graphics and Color Programming
The Commodore 64 offers 16 beautiful colors and special graphics characters!
The 16 Colors
| 0 - Black | 1 - White | 2 - Red | 3 - Cyan |
| 4 - Purple | 5 - Green | 6 - Blue | 7 - Yellow |
| 8 - Orange | 9 - Brown | 10 - Lt Red | 11 - Dk Grey |
| 12 - Grey | 13 - Lt Green | 14 - Lt Blue | 15 - Lt Grey |
Changing Colors in BASIC
10 REM CHANGE SCREEN AND BORDER COLORS 20 POKE 53280,6 : REM BORDER = BLUE 30 POKE 53281,0 : REM SCREEN = BLACK 40 PRINT CHR$(158); : REM TEXT = YELLOW 50 PRINT "YELLOW TEXT ON BLACK!"
Drawing with PETSCII Graphics
10 PRINT CHR$(147) : REM CLEAR SCREEN 20 PRINT " ****" 30 PRINT " ******" 40 PRINT " ********" 50 PRINT " **" 60 PRINT " **" 70 PRINT " TREE!"
A Colorful Display
10 PRINT CHR$(147) 20 FOR I = 0 TO 15 30 POKE 53281,I 40 FOR D = 1 TO 500:NEXT D 50 NEXT I 60 GOTO 20
This program cycles through all 16 background colors!