added zarbys rgbto555 function, still needs to be tested

This commit is contained in:
Justin Scofield
2022-06-05 01:10:10 -04:00
parent 55660e6922
commit cd821c5688

View File

@@ -1,2 +1,3 @@
function hexto555(h) = ((((h&$FF)/8)<<10)|(((h>>8&$FF)/8)<<5)|(((h>>16&$FF)/8)<<0))
function RGBto555(R,G,B) = ((R/8)<<10)|((G/8)<<5)|(B/8) ; zarby
function hexto555(h) = ((((h&$FF)/8)<<10)|(((h>>8&$FF)/8)<<5)|(((h>>16&$FF)/8)<<0)) ; kan
function menu_offset(y,x) = (y*64)+(x*2)