From 7d00ce14833b2e4fc70ff9c8959d93eac0412709 Mon Sep 17 00:00:00 2001 From: Romain Lamothe Date: Sun, 15 Oct 2023 21:07:08 +0200 Subject: [PATCH] check: best arctan approx + spinner animation --- README.md | 5 +- better_approx_version.html | 122 ------------------------------------- index.html | 104 ++++++++++++++++++++++--------- 3 files changed, 77 insertions(+), 154 deletions(-) delete mode 100644 better_approx_version.html diff --git a/README.md b/README.md index 09d778e..204cbac 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,4 @@ This is a JavaScript implementation of the Andres circle algorithm, adapted for ### :rocket: [See demo](https://motla.github.io/arc-algorithm/) - No need for floating point numbers or trigonometric functions in fast approximation mode - Sets each pixel only once -- Supports start/end angles, arc radius and trace width - -## Quirks -- In fast approximation mode, the number of drawn pixels is approximated for a given angle, so the end of the arc can be noisy (visible only on large arc widths/radius for some angles). This is OK for an animated spinner for example. +- Supports start/end angles, arc radius and trace width \ No newline at end of file diff --git a/better_approx_version.html b/better_approx_version.html deleted file mode 100644 index 53ca087..0000000 --- a/better_approx_version.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - Andres Circle Algorithm (an arc implementation by Motla) - - - - - -
-
-
-
-
-
-
-
- - -
-
- - - - - \ No newline at end of file diff --git a/index.html b/index.html index d817ccb..514cce8 100644 --- a/index.html +++ b/index.html @@ -10,15 +10,12 @@
-
-
-
-
-
- - -
-
+
+
+
+
+
+