Home   Help Search Login Register  

Author Topic: Colours  (Read 438 times)

0 Members and 1 Guest are viewing this topic.

Jasper

  • Guest
Colours
« on: 29 Jul 2004, 19:18:08 »
When setting up titles using rsc etc etc, the colour is defined by the 4 numbers (0,0,0,0)

What do these numbers represent and is there a way to test them rather than editing the description.ext and reloading the mission each time.

I have tried the figures for colour ranges like RGB, CMYK and HSL but none of them represent the colour that OFp shows.

Has anyone got a list of the standard colours?  ???

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Colours
« Reply #1 on: 29 Jul 2004, 20:21:43 »
you can use PAINT (the default windows grapx program) to see the #codes for colors. :o ::) ;D

Jasper

  • Guest
Re:Colours
« Reply #2 on: 29 Jul 2004, 20:45:28 »
No you cant  :P

Paint shows the colours in the format RGB which uses numbers from 0 - 255
so red is 255,0,0 however this doesnt work in OFp as red is (1,0,0,1) even though the numbers in OFp represent (Red, Green, Blue, Alpha).

If you put (1.0.0) into paint manually you get almost black!

Cheers any way  ;) :P ;D


Jasper

  • Guest
Re:Colours
« Reply #3 on: 29 Jul 2004, 20:48:58 »
 :-[

Actually it seems we were both wrong.

The Paint codes do work, BUT, you have to divide them by 255!!

 :D ;)

Cannon

  • Guest
Re:Colours
« Reply #4 on: 30 Jul 2004, 04:17:18 »
Looks like the color ranges from 0 to 1. That is, RGB(0) = OPF(0), RGB(255) = OPF(1).

So if you divide by 255 you are right :) Alpha should work the same, so 0 is fully transparent and 1 is fully opaque and so forth...
« Last Edit: 30 Jul 2004, 04:18:10 by Cannon »

Jasper

  • Guest
Re:Colours
« Reply #5 on: 30 Jul 2004, 06:24:54 »
Correct although I have seen numbers higher than 1 used!

But, I think that this is an error on the previous designers part and OFp just counts it as a 1 anyway.

e.g. In 1 script Blue is written as (0,0,2,1) but I think it should just be (0,0,1,1) and will produce the same colour.