half.italian
04-27-2006, 05:06 PM
I was expecting to set the color of a BText field using this:
text.setColor(Color.getHSBColor(float, float, float))
I went into photoshop, chose my color, then input the HSB values into the function and didn't get what I was expecting at all. In fact I messed around with the values and didn't seem to find any correlation between Photoshop values and the color given by the function. For example: h=100, s=100, b=0 gives me a bright red in Photoshop. I tried all combinations with both 100 and 255 and only got yellow.
What am I missing?
text.setColor(Color.getHSBColor(float, float, float))
I went into photoshop, chose my color, then input the HSB values into the function and didn't get what I was expecting at all. In fact I messed around with the values and didn't seem to find any correlation between Photoshop values and the color given by the function. For example: h=100, s=100, b=0 gives me a bright red in Photoshop. I tried all combinations with both 100 and 255 and only got yellow.
What am I missing?