From af78e5d0e619df84978e1b9e6146f808d82be23e Mon Sep 17 00:00:00 2001 From: wonder Date: Sat, 15 Aug 2026 20:08:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=AC=A7=E5=87=A0?= =?UTF-8?q?=E9=87=8C=E5=BE=97=E7=AE=97=E6=B3=95=E4=BA=A4=E4=BA=92=E5=BC=8F?= =?UTF-8?q?=E5=9B=BE=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 实现基于 Canvas 的矩形切割可视化,直观展示 GCD 求解过程 - 支持手动逐步演示和自动播放两种模式 - 添加随机示例功能,内置多组经典用例 - 当方块数量过多时自动简化绘制,避免性能问题 --- gcd.html | 521 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 521 insertions(+) create mode 100644 gcd.html diff --git a/gcd.html b/gcd.html new file mode 100644 index 0000000..43f8f40 --- /dev/null +++ b/gcd.html @@ -0,0 +1,521 @@ + + + + + +欧几里得算法图解 + + + + +
+

欧几里得算法图解

+

核心公式:gcd(a, b) = gcd(b, a mod b)

+ +
+ + + + + +
+ + + +
+ 边长为当前较小数的正方形,共 q 个 + 余数带,旋转后成为下一步的矩形 +
+ +
+
+
+ +
+ +
示意图按同一比例缩放;橙色余数条旋转 90° 后就是下一步要切的矩形。
+ + +
+
+ + + + + \ No newline at end of file