LB Booster
« BackgroundColor$ »

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!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: BackgroundColor$  (Read 368 times)
RNBW
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 106
xx 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.

Any ideas anyone?

Ray
User IP Logged

Alincon
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 147
xx Re: BackgroundColor$
« Reply #1 on: Apr 23rd, 2015, 8:02pm »

BackColor$ = r,g,b works for me in LBB. Wish it did in LB4

The color dialog can give you some number combinations to start with.
(click on the colors to reveal the combinations)

r.m.
User IP Logged

RNBW
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 106
xx Re: BackgroundColor$
« Reply #2 on: Apr 23rd, 2015, 9:34pm »

In LBB I've got BackgroundColor$ to work with:

BackgroundColor$ = "R B G"

I got the colour I was looking for with
BackgroundColor$ = "255 255 230"

Unfortunately, it doesn't seem to work in LB.

Yet another plus for LBB!!!

Ray
User IP Logged

Rod
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 110
xx Re: BackgroundColor$
« Reply #3 on: Apr 23rd, 2015, 9:55pm »

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.
User IP Logged

RNBW
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 106
xx Re: BackgroundColor$
« Reply #4 on: Apr 23rd, 2015, 10:15pm »

Rod

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?

Ray
User IP Logged

Rod
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 110
xx Re: BackgroundColor$
« Reply #5 on: Apr 24th, 2015, 3:34pm »

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.

This is a silly example http://gamebin.webs.com/Daylight.zip
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls