Author Topic: Colorset Editor V1.6 [IMGS]  (Read 26617 times)

Suggestions are always welcome - what shall be in the next update?

Uploaded to RTB - Let's see how long it takes.

HSV sliders!

here's some python code if you want easy refrense

Code: [Select]
def RGBtoHSV(colour):
colour = [float(x) / 255 for x in colour if not isinstance(x, float)] #convert to decimal colour
CMax = max(colour)
CMin = min(colour)

if CMax == CMin:
return [0, 0, CMin]

if colour[0] == CMin:
d = colour[1] - colour[2]
elif colour[2] == CMin:
d = colour[0] - colour[1]
else:
d = colour[2] - colour[0]

if colour[0] == CMin:
h = 3
elif colour[2] == CMin:
h = 1
else:
h = 5

hue = 60 * (h - d / (CMax - CMin))
saturation = (CMax - CMin) / CMax
value = CMax

return [hue, saturation, value]

def HSVtoRGB(colour):
C = colour[2] * colour[1]
H = colour[0] / 60.0
X = C * (1 - abs((H % 2) - 1))
m = colour[2] - C

if H >= 0 and H < 1:
R = C
G = X
B = 0
elif H >= 1 and H < 2:
R = X
G = C
B = 0
elif H >= 2 and H < 3:
R = 0
G = C
B = X
elif H >= 3 and H < 4:
R = 0
G = X
B = C
elif H >= 4 and H < 5:
R = X
G = 0
B = C
else:
R = C
G = 0
B = X

return [int((R+m)*255), int((G+m)*255), int((B+m)*255)]

HSV sliders!
Who uses HSV anymore nowadays?
:O

But sure
Will add

Who uses HSV anymore nowadays?
:O

But sure
Will add
artists

artists
It won't have a super cool colored slider like in gimp though

Who uses HSV anymore nowadays?

well that color space is pretty much necessary if you want to make pretty cycling rainbow colors :D

It won't have a super cool colored slider like in gimp though

why not?

Made a new colorset to test.  Love this mod :)
Absolutely love how you can test it in singleplayer without restarting.  such a time saver

May release this soon after I test it with a build or something :3



What do you guys think?  Any suggestions?




Created a new set, editing post whenever I have the chance to take a picture of it

Done:

From left to right, the rows are Rainbow, Transparent Rainbow, Redconer's Build Colors, Redconer's Windows, Redconer's Specials, Redconer's Usefuls, and Redconer's Randoms.
« Last Edit: May 17, 2013, 10:57:41 PM by Redconer »

Redconer's Build Colors, Redconer's Windows, Redconer's Specials, Redconer's Usefuls, and Redconer's Randoms.
Oh, for forgets sake. Just name it 'Redconer's Colorset'

Oh, for forgets sake. Just name it 'Redconer's Colorset'
But for what if the people that never knew what the forget it was think it wasn't made by me? (For those who don't even bother downloading it whenever I have a chance to make it as an add-on)
Also it's called Redconer's Unusuals, quite dumb name but it was matching

I think instead of a hex window you should just have a tab that is for hex. This would allow you to have an HSV tab as well. Also, the hex window only has an apply option.

It would also be cool if you added the option of using 0 - 1 values as an alternative 0 - 255 values. I find it easier to do things like 4ths and 8ths as increments of 0.25 and 0.125 instead of 64 and 32. I also know that some other people who make colorsets use this format. I think there might also be a default function that converts.