diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-05-18 15:29:18 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-05-18 15:29:18 -0700 |
commit | e27165cb9f0f0635f0290cb345442292faeba7fd (patch) | |
tree | 8eaa39a70e9f068e0a6b1acca79bf30fd7c903d2 /icons.lua | |
parent | 28c29eecdeacf51a262f598ddbc6a3d8131549eb (diff) | |
download | lines.love-e27165cb9f0f0635f0290cb345442292faeba7fd.tar.gz |
rectangle and square shapes
Diffstat (limited to 'icons.lua')
-rw-r--r-- | icons.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/icons.lua b/icons.lua index 0d05d09..8bfa67e 100644 --- a/icons.lua +++ b/icons.lua @@ -40,6 +40,20 @@ function icon.polygon(x, y) love.graphics.line(x+4,y+12, x+8,y+2) end +function icon.rectangle(x, y) + love.graphics.line(x+4,y+8, x+4,y+16) + love.graphics.line(x+4,y+16, x+16,y+16) + love.graphics.line(x+16,y+16, x+16,y+8) + love.graphics.line(x+16,y+8, x+4,y+8) +end + +function icon.square(x, y) + love.graphics.line(x+6,y+6, x+6,y+16) + love.graphics.line(x+6,y+16, x+16,y+16) + love.graphics.line(x+16,y+16, x+16,y+6) + love.graphics.line(x+16,y+6, x+6,y+6) +end + function icon.circle(x, y) love.graphics.circle('line', x+10,y+10, 8) end |