Hex colours
Does anyone know how I would work out half way between 2 colours? For example,if I had #ff0004(top-left of palette) and #ff0000(top-right of palette) how would I work out the middle of the palette?
(Oh,and for anyone wondering why this is in H+OS it's because it is for hardware)
< >
1-6 / 6 のコメントを表示
_I_ 2015年2月21日 7時09分 
it goes
#rrggbb
rr = red 00-ff (hex)
gg = green 00-ff (hex)
bb = blue 00-ff (hex)

#000000 = black
#ffffff = white

http://www.w3schools.com/tags/ref_colorpicker.asp
Kate 2015年2月21日 7時10分 
I'm not sure of what I'm saying, but maybe by making a number from the average between each set of 2 digits, so you get the average Red, the average Green and the average Blue. So by taking each set of 2 digits from each of the colors, and dividing the difference between the 2 sets by 2, then adding that to the lowest set. Keep in mind this is hexadecimal math, so the results may look wrong by normal decimal math. Use an online hex calculator or the windows calculator. So for example:
#339966 - a dark teal
#6666FF - kind of purple

First 2 sets: 33 and 66
66-33=33
33/2=19 (again, if you think this is wrong and should be 17, check a hex calculator)
33 is lower than 66, so we add the 19 to the 33 and get 4C.

The formula is MIN(set1, set2)+(MAX(set1,set2)-MIN(set1,set2))/2

Second set: 99 and 66
66+(99-66)/2=66+19=7F

Third set: 66 and FF
66+(FF-66)/2=66+4C=B2

So your number would be #4C7FB2, which by looking at it does look like the color halfway between those 2 others.
Just do the math. The hex code values represent red, green and blue respectively, with each color going from 00 (0) to ff (255). The first number moves in increments of 16, while the second number goes from 0 to 15. So, for example, #0ff0c5 means R=15, G=240, and B=197.
egypt 2015年2月21日 7時43分 
What I mean is,with this [johndyer.name] palette,assuming the 2 values at the top are correct what would that blue colour be? I think Kate got it right,but I don't quite follow the method(and I am aware of hexadecimals base number etc)
Kate 2015年2月21日 7時57分 
Despairingsquid の投稿を引用:
What I mean is,with this [johndyer.name] palette,assuming the 2 values at the top are correct what would that blue colour be? I think Kate got it right,but I don't quite follow the method(and I am aware of hexadecimals base number etc)
The problem is that pallette doesn't go from #000000 to #ffffff. The color "in between" #ff0004 and #ff0000 is very very close to those 2, all 3 are red, none are that light teal color. I'd copy the image to an image editing software and use a color picker.
egypt 2015年2月21日 8時03分 
Kate の投稿を引用:
Despairingsquid の投稿を引用:
What I mean is,with this [johndyer.name] palette,assuming the 2 values at the top are correct what would that blue colour be? I think Kate got it right,but I don't quite follow the method(and I am aware of hexadecimals base number etc)
The problem is that pallette doesn't go from #000000 to #ffffff. The color "in between" #ff0004 and #ff0000 is very very close to those 2, all 3 are red, none are that light teal color. I'd copy the image to an image editing software and use a color picker.
Thanks,decided to get a ruler and just measure it on screen :P
< >
1-6 / 6 のコメントを表示
ページ毎: 1530 50

投稿日: 2015年2月21日 4時32分
投稿数: 6