local superColor = skincolors[SKINCOLOR_SUPERROSY] //change this to your desired skincolor!

local rampPos = 1
local rampDir = true
local ramps = {}

//convert the ramp to a table
ramps[1] = {252,200,200,201,201,202,202,203,203,204,204,205,205,206,206,207}
ramps[2] = {252,176,200,200,201,201,202,202,203,203,204,204,205,205,206,207}
ramps[3] = {252,176,176,200,200,201,201,202,202,203,203,204,204,205,206,207}
ramps[4] = {252,252,176,176,200,200,201,201,202,202,203,203,204,205,206,207}
ramps[5] = {252,252,252,252,176,176,176,176,200,201,202,203,204,205,206,207}

local function RampChange()
	if (rampDir) then
		rampPos = $1+1
	else
		rampPos = $1-1
	end
end

local function RampLoop()
	if not (leveltime % 5) then

		RampChange()
		
		//position is too high/low, reverse your direction
		if not (ramps[rampPos])
			rampDir = not rampDir
			if(not rampDir) then
				RampChange()
			end
			RampChange()
		end

		superColor.ramp = ramps[rampPos]
	end
end

addHook("ThinkFrame", RampLoop)