mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 12:47:16 +01:00
Merge pull request #11188 from VOREStation/Arokha/colorhelpers
Remove tons of pointless helpers
This commit is contained in:
committed by
Chompstation Bot
parent
4a6c523aa6
commit
60f60e58f4
@@ -361,7 +361,7 @@
|
||||
var/saturation = get_pin_data(IC_INPUT, 2)
|
||||
var/value = get_pin_data(IC_INPUT, 3)
|
||||
if(isnum(hue) && isnum(saturation) && isnum(value))
|
||||
result = HSVtoRGB(hsv(AngleToHue(hue),saturation,value))
|
||||
result = rgb(h = hue, s = saturation, v = value, space = COLORSPACE_HSV)
|
||||
|
||||
set_pin_data(IC_OUTPUT, 1, result)
|
||||
push_data()
|
||||
|
||||
Reference in New Issue
Block a user