freeslot( "SKINCOLOR_WAIT_WHAT", "SKINCOLOR_RAINBOW", "SKINCOLOR_USA", "SKINCOLOR_RED_AND_BLUE", "SKINCOLOR_EMOJI", "SKINCOLOR_IM_BLUE", "SKINCOLOR_BLUE_BURNT", "SKINCOLOR_RED_BURNT", "SKINCOLOR_ORANGE_BURNT", "SKINCOLOR_PINK_BURNT", "SKINCOLOR_PURPLE_BURNT", "SKINCOLOR_YELLOW_BURNT" ) skincolors[SKINCOLOR_WAIT_WHAT] = { name = "wait_what", ramp = {0,121,188,121,188,121,188,121,188,121,188,121,188,121,188,0}, invcolor = SKINCOLOR_VAPOR, invshade = 9, chatcolor = V_INVERTMAP, accessible = true } skincolors[SKINCOLOR_RAINBOW] = { name = "Rainbow", ramp = {35,54,74,98,122,255,151,151,151,181,192,28,0,15,78,122}, invcolor = SKINCOLOR_VAPOR, invshade = 9, chatcolor = V_INVERTMAP, accessible = true } skincolors[SKINCOLOR_USA] = { name = "USA", ramp = {35,34,34,33,32,210,209,252,1,145,146,147,148,149,150,151}, invcolor = SKINCOLOR_VAPOR, invshade = 9, chatcolor = V_INVERTMAP, accessible = true } skincolors[SKINCOLOR_RED_AND_BLUE] = { name = "red_and_blue", ramp = {35,35,151,151,35,35,151,151,35,35,151,151,35,35,151,151}, invcolor = SKINCOLOR_VAPOR, invshade = 9, chatcolor = V_INVERTMAP, accessible = true } skincolors[SKINCOLOR_EMOJI] = { name = "Emoji", ramp = {73,73,73,74,74,74,74,74,75,53,53,54,55,55,55,56}, invcolor = SKINCOLOR_VAPOR, invshade = 9, chatcolor = V_INVERTMAP, accessible = true } skincolors[SKINCOLOR_IM_BLUE] = { name = "I'm_BLUE", ramp = {151,151,151,151,151,151,151,151,151,151,151,151,151,151,151,151}, invcolor = SKINCOLOR_VAPOR, invshade = 9, chatcolor = V_INVERTMAP, accessible = true } skincolors[SKINCOLOR_BLUE_BURNT] = { name = "Blue_Burnt", ramp = {151,151,154,156,157,159,253,30,30,253,159,157,156,154,153,151}, invcolor = SKINCOLOR_VAPOR, invshade = 9, chatcolor = V_INVERTMAP, accessible = true } skincolors[SKINCOLOR_RED_BURNT] = { name = "Red_Burnt", ramp = {35,37,39,41,44,71,47,30,30,47,71,43,41,39,37,35}, invcolor = SKINCOLOR_VAPOR, invshade = 9, chatcolor = V_INVERTMAP, accessible = true } skincolors[SKINCOLOR_ORANGE_BURNT] = { name = "Orange_Burnt", ramp = {54,56,58,60,70,70,239,30,30,239,70,70,60,58,56,54}, invcolor = SKINCOLOR_VAPOR, invshade = 9, chatcolor = V_INVERTMAP, accessible = true } skincolors[SKINCOLOR_PINK_BURNT] = { name = "Pink_Burnt", ramp = {201,202,194,195,196,197,199,29,29,199,197,196,195,194,202,201}, invcolor = SKINCOLOR_VAPOR, invshade = 9, chatcolor = V_INVERTMAP, accessible = true } skincolors[SKINCOLOR_PURPLE_BURNT] = { name = "Purple_Burnt", ramp = {164,165,166,167,168,169,187,30,30,187,169,168,167,166,164,164}, invcolor = SKINCOLOR_VAPOR, invshade = 9, chatcolor = V_INVERTMAP, accessible = true } skincolors[SKINCOLOR_YELLOW_BURNT] = { name = "Yellow_Burnt", ramp = {73,74,75,76,77,79,238,111,111,238,79,77,76,75,74,73}, invcolor = SKINCOLOR_VAPOR, invshade = 9, chatcolor = V_INVERTMAP, accessible = true } local flashColors = { skincolors[SKINCOLOR_BLUE_BURNT], skincolors[SKINCOLOR_RED_BURNT], skincolors[SKINCOLOR_ORANGE_BURNT], skincolors[SKINCOLOR_PINK_BURNT], skincolors[SKINCOLOR_PURPLE_BURNT], skincolors[SKINCOLOR_YELLOW_BURNT] } local flashDelay = 1 //change this to how many tics it takes to animate local rampPos = 1 local rampDir = true local ramps = {} for curcol = 1, table.maxn(flashColors), 1 //convert the ramp to a table ramps[curcol] = {{}} for i = 0, 15, 1 ramps[curcol][1][i+1] = flashColors[curcol].ramp[i] end //create the offset versions of the ramp for i = 2, 16,1 ramps[curcol][i] = {{}} for pos,val in ipairs(ramps[curcol][i-1]) do if not (pos == 16) then ramps[curcol][i][pos+1] = val else ramps[curcol][i][1] = val end end end end local function RampWave() if not (leveltime % flashDelay) then rampPos = $1+1 //too high, time to go back if not (ramps[1][rampPos]) rampPos = 1 end for i = 1, table.maxn(ramps), 1 flashColors[i].ramp = ramps[i][rampPos] end end end addHook("ThinkFrame", RampWave)