Search found 2 matches

by Yenoxel
Mon Jan 15, 2024 8:46 am
Forum: Libraries and Tools
Topic: [CODE] draw rectangles by percent of window dimensions.
Replies: 1
Views: 26449

Re: [CODE] draw rectangles by percent of window dimensions.

Useful with addition of library "svglover" (https://www.love2d.org/wiki/svglover) For drawing *svg images on any window resolution without quality loosing.
by Yenoxel
Sun Jan 14, 2024 3:52 pm
Forum: Libraries and Tools
Topic: [CODE] draw rectangles by percent of window dimensions.
Replies: 1
Views: 26449

[CODE] draw rectangles by percent of window dimensions.

-- love version 11.5 -- file: main.lua - simple implementation of percentual scaling of rectangles like in CSS,HTML -- Date: 2023/01/14 --os.execute("clear") -- clear console previous output for *nix OS'es function love.load() --<GLOBALS>---------------------------------------------------...