You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A second call to View.Set doesn't supercede the first call if you're changing the color depth of the program.
Here's a little program...
var Blue := RGB.AddColor(0,0.5,1)
View.Set ("graphics:600;400")
View.Set ("graphics:600;400;millions")
Draw.Dot (300, 200, Blue)
If line 3 (the second View.Set) is commented out, you receive an error saying "Color value of 256 is out of bounds. Max color number = 256." because it's defaulting to "graphics:cga" or whatever.
If you comment out line 2 (the first View.Set) the program works.
However, if you leave both lines uncommented you receive the first error, meaning the second call isn't doing anything.
The text was updated successfully, but these errors were encountered:
A second call to View.Set doesn't supercede the first call if you're changing the color depth of the program.
Here's a little program...
var Blue := RGB.AddColor(0,0.5,1)
View.Set ("graphics:600;400")
View.Set ("graphics:600;400;millions")
Draw.Dot (300, 200, Blue)
If line 3 (the second View.Set) is commented out, you receive an error saying "Color value of 256 is out of bounds. Max color number = 256." because it's defaulting to "graphics:cga" or whatever.
If you comment out line 2 (the first View.Set) the program works.
However, if you leave both lines uncommented you receive the first error, meaning the second call isn't doing anything.
The text was updated successfully, but these errors were encountered: