SPRCOLOR
BASIC keyword | |
Keyword: | SPRCOLOR |
Abbreviation: | sprC |
Type: | Command |
Token code: | $fe $08 (254 8) |
Handling routine in BASIC ROM: |
|
List of all BASIC keywords |
Remark: This article describes the BASIC command SPRCOLOR in Commodore BASIC 7.0 or higher.
Type: Command General Programming-Syntax: SPRCOLOR [ <multicolor1> ][, <multicolor2>]
SPRCOLOR selects the color of the sprites.
The parameters multicolor1 and multicolor2 must be a number from 1 until 16.
The color code starts with 1 "black" until 16 "grey3". If you use this color table minus 1, you get the official C64 color table.
Value | Nname | Color | Value | Name | Color | |
---|---|---|---|---|---|---|
1 | Black | 9 | Orange | |||
2 | White | 10 | Brown | |||
3 | Red | 11 | Lightred | |||
4 | Cyan | 12 | Darkgrey / Grey 1 |
|||
5 | Violet / Purple |
13 | Grey 2 | |||
6 | Green | 14 | Lightgreen | |||
7 | Blue | 15 | Lightblue | |||
8 | Yellow | 16 | Lightgrey / Grey 3 |
The function RSPCOLOR can be used to read out the multi color.
Another sprite commands in BASIC 7.0 are MOVSPR, RSPPOS, RSPRITE, SPRITE, SPRDEF and SPRSAV, also BUMP, COLLISION, GSHAPE and SSHAPE.
Examples[edit | edit source]
SPRCOLOR 1,2
Change the multi color 1 to "black" and the multi color 2 to "white".
SPRCOLOR ,3
Change only the multi color 1 to "red".
SPRCOLOR 2,0
This error occur ?ILLEGAL QUANTITY ERROR - multi color 1 is also changed to "white".
ABS | AND | APPEND | ASC | ATN | AUTO | BACKUP | BANK | BEGIN | BEND | BLOAD | BOOT | BOX | BSAVE | BUMP | CATALOG | CHAR | CHR$ | CIRCLE | CLOSE | CLR | CMD | COLLECT | COLLISION | COLOR | CONCAT | CONT | COPY | COS | DATA | DCLEAR | DCLOSE | DEC | DEF FN | DELETE | DIM | DIRECTORY | DLOAD | DO | DOPEN | DRAW | DS | DS$ | DSAVE | DVERIFY | EL | ELSE | END | ENVELOPE | ER | ERR$ | EXIT | EXP | FAST | FETCH | FILTER | FN | FOR | FRE | GET | GET# | GETKEY | GO64 | GOSUB | GOTO | GRAPHIC | GSHAPE | HEADER | HELP | HEX$ | IF | INPUT | INPUT# | INSTR | INT | JOY | KEY | LEFT$ | LEN | LET | LIST | LOAD | LOCATE | LOG | LOOP | MID$ | MONITOR | MOVSPR | NEW | NEXT | NOT | (OFF) | ON | OPEN | OR | PAINT | PEEK | PEN | (PI) | PLAY | POINTER | POKE | POS | POT | PRINT | PRINT USING | PRINT# | PUDEF | (QUIT) | RCLR | RDOT | READ | RECORD | REM | RENAME | RENUMBER | RESTORE | RESUME | RETURN | RGR | RIGHT$ | RND | RREG | RSPCOLOR | RSPPOS | RSPRITE | RUN | RWINDOW | SAVE | SCALE | SCNCLR | SCRATCH | SGN | SIN | SLEEP | SLOW | SOUND | SPC( | SPRCOLOR | SPRDEF | SPRITE | SPRSAV | SQR | SSHAPE | ST | STASH | STEP | STOP | STR$ | SWAP | SYS | TAB( | TAN | TEMPO | THEN | TI | TI$ | TO | TRAP | TROFF | TRON | USR | VAL | VERIFY | VOL | WAIT | WHILE | WINDOW | WIDTH | XOR