Drawing entire palette colors?

BlitzMax Forums/BlitzMax Programming/Drawing entire palette colors?

ozak(Posted 2006) [#1]
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


ImaginaryHuman(Posted 2006) [#2]
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.


kronholm(Posted 2006) [#3]
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.


ozak(Posted 2006) [#4]
Hmm. Yeah. That's probably the best solution :)