From 932faabd4abe629d6b6f8f26e10183592a542615 Mon Sep 17 00:00:00 2001 From: unlockable Date: Thu, 24 Aug 2023 18:26:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=BB=E5=9B=BE=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 8By8/8By8.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/8By8/8By8.ino b/8By8/8By8.ino index cd05d6e..1977ce8 100644 --- a/8By8/8By8.ino +++ b/8By8/8By8.ino @@ -79,7 +79,7 @@ void setup() { for (int x = 0; x < 8; x++) { for (int y = 0; y < 8; y++) { - Cube::set_status(x, y, (x + y)/2, 3); + Cube::set_status(x, y, sqrt((x - 3) * (x - 3) + (y - 3) * (y - 3)), 3); } } }