fucking scales!

The hub of Aura activity, the cortex that binds the forum together.
Post Reply
User avatar
kaos
Noble Warrior
Posts: 4089
Joined: Mon Jun 14, 2004 3:09 pm
Location: Atlanta, Ga

Post by kaos » Sun Jun 24, 2007 4:36 pm

check it out...

I have two art programs

they both use RGB sliders.

however....

one of these slides from 0 to 255

the other slides from -100 to 100

meaning pure black on the first scale is R0 G0 B0
but the same color on the other is R-100 G-100 B-100

see the problem?

I figure I need to make some kind of scale conversion thing.

like how thermometers have both the Fahrenheit and Celcius

I'm really hoping I don't have the draw this thing out on paper tho.
anybody know of an quick and easy way to set something like that up?
User avatar
Bogey
Not-A-Deserter
Posts: 1147
Joined: Wed Jun 16, 2004 11:30 pm

Post by Bogey » Sun Jun 24, 2007 10:53 pm

Call the value for the 0 - 255 scale 'A', and the value for the -100 - 100 scale 'B'.

If you have A, but want B then use:

(A/1.275)-100 = B

If you have B, but want A then use:

(B+100)x1.275 = A

Something like that I think. I could be wrong so somebody correct me if I am.
Melana
Distgrunted Hero
Posts: 2132
Joined: Mon Jun 14, 2004 7:29 am
Location: Australia

Post by Melana » Mon Jun 25, 2007 1:29 am

Who would of thought you'd need algebra :)

Joe is correct. I substituted the numbers in to check his equations and they work.

If you didn't want to have to make the equations all over again you could probably plug them into Excel or a simaler spread sheet and get it done that way to use as a reference.

EDIT...

I thought it would be simplier then i'm finding it to do. It took literally 30 seconds to type in the two equations into my graphics calculator and get the values but my excel is very rusty.

It's a challenge for my poor befuddled mind,so i'm going to go and do it until i work it out. I'll email you a file of it

EDIT V1.2

Fuck it... i can't be fucked, i can't remember how to set parameters/field boundaries... it's all just a hell of a lot easier on my clunky ti82
Last edited by Melana on Mon Jun 25, 2007 2:12 am, edited 1 time in total.
User avatar
kaos
Noble Warrior
Posts: 4089
Joined: Mon Jun 14, 2004 3:09 pm
Location: Atlanta, Ga

Post by kaos » Mon Jun 25, 2007 7:34 am

solving equations I could do.
setting them up, not so hot.

thanks for the help.
Last edited by kaos on Mon Jun 25, 2007 7:34 am, edited 1 time in total.
Post Reply