COLOR模块增加几个没卵用的(大概)rainbow拓展函数

This commit is contained in:
MrZ626
2020-12-15 23:56:13 +08:00
parent 23abf14888
commit 81aab6bdb3

View File

@@ -89,5 +89,23 @@ function COLOR.rainbow(phase)
sin(phase+2.0944)*.4+.6,
sin(phase-2.0944)*.4+.6
end
function COLOR.rainbow_light(phase)
return
sin(phase)*.2+.7,
sin(phase+2.0944)*.2+.7,
sin(phase-2.0944)*.2+.7
end
function COLOR.rainbow_dark(phase)
return
sin(phase)*.2+.4,
sin(phase+2.0944)*.2+.4,
sin(phase-2.0944)*.2+.4
end
function COLOR.rainbow_grey(phase)
return
sin(phase)*.16+.5,
sin(phase+2.0944)*.16+.5,
sin(phase-2.0944)*.16+.5
end
return COLOR