From 96249df6695b1267ed20bd16edd77bf384badd9d Mon Sep 17 00:00:00 2001 From: mat ess Date: Sun, 11 Sep 2022 14:39:25 -0400 Subject: [PATCH] Slight tweaks --- ants/main.lua | 4 ++-- colorbrewer.lua | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ants/main.lua b/ants/main.lua index f1f9c12..ed2769b 100644 --- a/ants/main.lua +++ b/ants/main.lua @@ -56,7 +56,7 @@ local function initScreen() end local function initFont() - FONT = love.graphics.newFont(24) + FONT = love.graphics.newFont(16) love.graphics.setFont(FONT) FPS_WIDTH = FONT:getWidth("120 FPS") FPS_HEIGHT = FONT:getHeight() @@ -177,7 +177,7 @@ local function paintFPS() love.graphics.setBlendMode("alpha") local fps = tostring(love.timer.getFPS()) .. " FPS" love.graphics.setColor(COLORS[1].rgba) - love.graphics.rectangle("fill", WIDTH - FPS_WIDTH - 10, HEIGHT - FPS_HEIGHT - 20, FPS_WIDTH + 10, FPS_HEIGHT + 10) + love.graphics.rectangle("fill", WIDTH - FPS_WIDTH - 10, HEIGHT - FPS_HEIGHT - 20, FPS_WIDTH + 30, FPS_HEIGHT + 10, 5, 5) love.graphics.setColor(COLORS[#COLORS].rgba) love.graphics.print(fps, WIDTH - FPS_WIDTH - 5, HEIGHT - FPS_HEIGHT - 15) end diff --git a/colorbrewer.lua b/colorbrewer.lua index 9cd7b54..1a6f32e 100644 --- a/colorbrewer.lua +++ b/colorbrewer.lua @@ -1,4 +1,5 @@ -- based on +-- https://colorbrewer2.org -- https://github.com/axismaps/colorbrewer/blob/master/colorbrewer_schemes.js local colorbrewer = {}