ID:2882784
 
Not a bug
BYOND Version:514
Operating System:Windows 10 Pro 64-bit
Web Browser:Firefox 116.0
Applies to:Dream Seeker
Status: Not a bug

This is not a bug. It may be an incorrect use of syntax or a limitation in the software. For further discussion on the matter, please consult the BYOND forums.
Descriptive Problem Summary:
Settings alpha to color remains even in subsequent calls to modify color value, including null.

Numbered Steps to Reproduce Problem:

Code Snippet (if applicable) to Reproduce Problem:
turf
square
icon='square.dmi'
Click()
color = "#2288ff66"
spawn(10) color = "#ff8822"//Changes base color.
spawn(30) color = initial(color)//Becomes null, but transparency is still there.
spawn(50) color = "#ffffffff"//Resets


Expected Results:
subsequent calls without alpha byte to modify alpha back to "ff" restoring transparency to full visibility unless otherwise explicitly defined.

Actual Results:
transparency remains in any call unless alpha byte is included in set value to color.

Does the problem occur:
Every time? Or how often? Every time.
In other games?
In other user accounts?
On other computers?

When does the problem NOT occur?

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)

Workarounds:
define alpha byte as "ff" then nullify color.
color = "#ffffffff";color = null
Lummox JR resolved issue (Not a bug)
This is normal behavior. Ultimately it's just a side effect of the fact that color and alpha are combined internally. Normally you don't set color and alpha at the same time (color matrices being another major exception), but that option is available.