From afaf82538d09cd77ee4f5a435b79995e88be84f5 Mon Sep 17 00:00:00 2001
From: Akshay Nair <phenax5@gmail.com>
Date: Sun, 7 Jun 2026 17:46:08 +0530
Subject: Rename the files

---
 src/circle.sql | 17 -----------------
 1 file changed, 17 deletions(-)
 delete mode 100644 src/circle.sql

(limited to 'src/circle.sql')

diff --git a/src/circle.sql b/src/circle.sql
deleted file mode 100644
index c4ac18a..0000000
--- a/src/circle.sql
+++ /dev/null
@@ -1,17 +0,0 @@
-INSERT OR REPLACE INTO images (id, width, height) VALUES ('circle', 400, 400) RETURNING id;
-
-WITH RECURSIVE
-  image AS (SELECT * FROM images WHERE id = 'circle'),
-  circle AS (SELECT width/2 AS cx, height/2 AS cy, 160 AS radius FROM image),
-  horizontal(x) AS
-    (SELECT width FROM image UNION ALL SELECT x - 1 FROM horizontal WHERE x > 1),
-  vertical(y) AS
-    (SELECT height FROM image UNION ALL SELECT y - 1 FROM vertical WHERE y > 1),
-  _pixels(x, y, r, g, b) AS (SELECT
-    x, y,
-    150,
-    255 * MAX(0, MIN(1, (SELECT (x - cx)*(x - cx) + (y - cy)*(y - cy) - radius*radius FROM circle))),
-    150
-    FROM vertical, horizontal
-  )
-INSERT INTO pixels (image_id, x, y, r, g, b) SELECT 'circle', x, y, r, g, b FROM _pixels;
-- 
cgit v1.3.1

