Drawing entire palette colors?
BlitzMax Forums/BlitzMax Programming/Drawing entire palette colors?
| ||
Hi I'm doing a sprite editor, so I was just thinking if someone got some code to easily draw the entire palette as small squares for color picking? Just like in Paint Shop Pro etc. Thanks in advance Ozak |
| ||
I think PSP has a Hue-saturation-volume spread, different hues go down the area and volumes go across, or something. maybe it's rgb. |
| ||
ozak, I'd imagine it wouldn't be too hard to generate a palette since all you have to do is loop through 0 to 255 on three occasions (red green blue) and draw a pixel for each. I opted for another solution in my editor though, simply 3 sliders for each color, along with 20 or so pick-boxes where you can select/store your favorite colors. Was very easy to make, and works perfectly. |
| ||
Hmm. Yeah. That's probably the best solution :) |