Skip to content

COLOR() doesn't always work as expected #104

@billkendrick

Description

@billkendrick

The COLOR() function, available to the PRINT command, does not always seem to work. In this example, a numeric variable and a string containing some digits are both modified as expected, but a string containing only "!" remains as-is (in GRAPHICS 2, as yellow text; in GRAPHICS 0 text window, as non-inverse-video text).

graphics(2)
S=1234

print #6,"SCORE: "; COLOR(32) S
print "SCORE: "; COLOR(128) S

print #6,"TEST"; COLOR(32) "!"
print "TEST"; COLOR(128) "!"

print #6,"TEST"; COLOR(32) "123"
print "TEST"; COLOR(128) "123"

while 1
wend

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions