Space Engineers

Space Engineers

Not enough ratings
HSV Color Converter
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
1.427 KB
Oct 18, 2015 @ 5:41pm
1 Change Note ( view )

Subscribe to download
HSV Color Converter

Description
Progblock to convert colors between standard Hue/Saturation/Value and Space Engineer's color picker variant. Finally bring all the colors of the rainbow to your blocks!

Source code: https://gist.github.com/shizuka/263cfceebdea38a518df

-----

Usage:
Place block, load script
Run block with argument in one of the following formats:
HSV:###/###/###
SPC:###/###/###
(That's the three number components separated by slashes)
Converted value outputs to the info screen

SPC is the color picker's numbers
Space Engineers HSV = H, (S*2)-100, (V*2)-100

-----

I planned to have RGB conversion built in, for one-stop converting between any values I might find on color swatches, but the algorithm to convert between RGB and HSV is much more complex than I'm willing to debug in one night. I want to get back to building my station!

TODO: add RGB conversion (RGB:###/###/###) and hexcolor conversion (HEX:#xxxxxx)
2 Comments
lylesonders Oct 20, 2015 @ 1:28pm 
This is great, I created a converter in Excel for this but it will be a lot more convient not having to leave the game to get color settings.
lylesonders Oct 20, 2015 @ 1:28pm 
This is great, I created a converter in Excel for this but it will be a lot more convient not having to leave the game to get color settings.