Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Second call to View.Set doesn't change color depth #50

Open
dnewhall opened this issue Apr 8, 2020 · 0 comments
Open

Second call to View.Set doesn't change color depth #50

dnewhall opened this issue Apr 8, 2020 · 0 comments

Comments

@dnewhall
Copy link

dnewhall commented Apr 8, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant