From f31db7fc66fb1a68a9ee0c7a8e083031a4bfff94 Mon Sep 17 00:00:00 2001 From: Nikaoto Date: Wed, 4 Apr 2018 01:06:39 +0400 Subject: [PATCH] remove demo4 --- demo4/main.lua | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 demo4/main.lua diff --git a/demo4/main.lua b/demo4/main.lua deleted file mode 100644 index a5243bf..0000000 --- a/demo4/main.lua +++ /dev/null @@ -1,38 +0,0 @@ --- main.lua --- Ellipse and circle demo for deep - -package.path = package.path .. ";../?.lua" -local deep = require "deep" - - -function love.keypressed(key) - if key == "escape" then - love.event.quit() - end -end - -function love.load() - yellow = {255, 255, 0} - cx, cy = 120, 120 - r = 50 - smallR = 5 -end - -function love.draw() - for i = -r, r do - for j = -r, r do - if i*i + j*j == r*r then - if (math.random(2) == 1) then - deep:ellipseC(yellow, "fill", i + cx, j + cy, 6, smallR / 2, smallR * 2) - else - deep:circleC(yellow, "fill", i + cx, j + cy, 6, smallR) - end - end - end - end - - deep:rectangleC({255, 0, 0}, "fill", cx - 60, cy - 60, 5, 120, 120) - deep:circleC({0, 0, 255}, "fill", cx, cy, 1, 60*math.sqrt(2)) - - deep:drawAll() -end \ No newline at end of file