Welcome Guest. Please Login or Register. Apr 1st, 2018, 04:23am
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. We apologize Conforums does not have any export functions to migrate data. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
BackgroundColor$
« Thread started on: Apr 23rd, 2015, 7:01pm »
Is BackgroundColor$ limited to the standard colours listed in LB or can these be varied. What I am looking for is a pale cream background. The closest I can get to this is the garish yellow, which looks awful.
I tried BackgroundColor$ = "Backcolor R B G" (where R B & G are numbers 0-255). This changes the background colour but not in the way I expected.
Just to clarify, the color triplet is R G B, not R B G as you have posted. Perhaps that is the color distortion you mention. And yes Liberty BASIC only supports named colors.
You are correct. I'm afraid I was being a bit dyslectic. It is indeed RGB and that was why I was having the problem. The figures in my last post were in RGB order, not RBG as I stated.
It's a pity that LB can't do this. Is there no way it can be overcome?
In the dim and distant past the controls on a GUI were supposed to adopt the colors that the user had chosen, not the programmer. So multi colored controls are new-fangled and largely I think driven by the browser experience folks have gained.
I believe that's historically why Liberty BASIC has more limited color abilities. But I am sure that will change.
The alternative is to roll your own in a graphic box where you can leave behind color, shape and transparency restrictions and code photorealistic controls of your own.