[RESOLVED] display.setDefault bug

I think that I have found a bug in the graphics 2.0 daily builds (Build: 2013.2004)

If I try to change the default background color using

display.setDefault("key", r, g, b, alpha)

then the screen turns white no matter which values I choose except for 255, 255, 255 and 0, 0, 0 .

The alpha value seems to be working. There is no error message or something else, the background is just white.

r,g,b,a values are given in fractional values from 0 to 1 in Graphics 2.0.

You’ll need to convert any values you have in the 0-255 range. The easiest is to just add “/255” to any old values you may have to get them into a correct range.

I forgot to turn v1 compatibility mode to on -.- I should get some sleep^^. Thank you ingemar, this thread may help anyone else who encounters the same problem.

r,g,b,a values are given in fractional values from 0 to 1 in Graphics 2.0.

You’ll need to convert any values you have in the 0-255 range. The easiest is to just add “/255” to any old values you may have to get them into a correct range.

I forgot to turn v1 compatibility mode to on -.- I should get some sleep^^. Thank you ingemar, this thread may help anyone else who encounters the same problem.