From 81aab6bdb36c34cd390f81af903e2aa650b8edf4 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Tue, 15 Dec 2020 23:56:13 +0800 Subject: [PATCH] =?UTF-8?q?COLOR=E6=A8=A1=E5=9D=97=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=87=A0=E4=B8=AA=E6=B2=A1=E5=8D=B5=E7=94=A8=E7=9A=84=EF=BC=88?= =?UTF-8?q?=E5=A4=A7=E6=A6=82=EF=BC=89rainbow=E6=8B=93=E5=B1=95=E5=87=BD?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/color.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Zframework/color.lua b/Zframework/color.lua index 7c600921..1e05dff0 100644 --- a/Zframework/color.lua +++ b/Zframework/color.lua @@ -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 \ No newline at end of file