Chris,
Could anyone suggest a way of working out a brigter version of a colour.
Just in case you have not seen this, Cesar has a function/form to
lighten/darken colors:
http://weblogs.foxite.com/cesarchalom/archive/2006/11/27/2974.aspx
Rick
White Light Computing, Inc.
RETURN RGB(lnRed, lnGreen, lnBlue)
ENDFUNC
Sietse
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris Davis
Sent: woensdag 22 november 2006 17:51
To: [EMAIL PROTECTED]
Subject: RE: Changing Colours
This does not work, for example if I set screen
I will give it a go and let you know how I get on.
Cheers
Chris.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Sietse Wijnker
Sent: 23 November 2006 10:12
To: [EMAIL PROTECTED]
Subject: RE: Changing Colours
You interpreted my suggestion correct
Hi All,
Could anyone suggest a way of working out a brigter version of a colour. I
use RGB(x,x,x) to set a colour to say Blue,Pink,Red or whatever and would
like to be able to work out from whatever colour it is a brighter version.
So I'm after bright blue,bright pink,bright red in order to
: Changing Colours
Hi All,
Could anyone suggest a way of working out a brigter version
of a colour. I use RGB(x,x,x) to set a colour to say
Blue,Pink,Red or whatever and would like to be able to work
out from whatever colour it is a brighter version.
So I'm after bright blue,bright pink
)
Any more ideas, or have I interpreted your suggestion wrong ?
Cheers
Chris.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Sietse Wijnker
Sent: 22 November 2006 16:15
To: [EMAIL PROTECTED]
Subject: RE: Changing Colours
Just add a RGB() value to the color
Chris,
In my experience, if you're trying to dynamically brighten a color, but stay in
the same color value, the simplest way is to add multiples of 65793 (this is
256^2 + 256^1 + 256^0, or 256*256 + 256 + 001). On my wimpy-graphics
machine, the difference isn't noticeable until I add (or
Chris Davis wrote:
This does not work, for example if I set screen back colour to a nice
orange.
_screen.BackColor= RGB(255,128,0)
And then do as you suggest and add a value to it, it does not change it to a
more vivid,brighter orange as I wish it turns green!
This does not work
OHHH! yes it does:
_screen.BackColor=RGB(144,176,144)
_screen.BackColor = _screen.BackColor + RGB(20,20,20)
_screen.BackColor=RGB(255,255,255)
Andrew Davies MBCS CITP
- AndyD 8-)#
**
This email
9 matches
Mail list logo