Search found 1184 matches

by darkfrei
Sun Apr 19, 2020 4:44 pm
Forum: General
Topic: love.draw.line - line width is one pixel too wide
Replies: 4
Views: 4158

Re: love.draw.line - line width is one pixel too wide

Cannot attach the file properly, sorry. With the code love.graphics.setLineWidth(1) love.graphics.rectangle (mode, x, y, width, heigh) love.graphics.setLineWidth(0.5) love.graphics.line( x1, y1, x2, y2) it looks like: another line thickness.png You can see small green lines about the middle line. Th...
by darkfrei
Sun Apr 19, 2020 4:34 pm
Forum: General
Topic: love.draw.line - line width is one pixel too wide
Replies: 4
Views: 4158

love.draw.line - line width is one pixel too wide

Hi all! I've tried to make this picture: what Ive expected.png The square and the line have the same width, default one pixel. The square was drawn the right way, but the line is too wide: what Ive got.png Is the line width not the same as by the square? Why? UPD: The love.graphics.setLineWidth(1) l...
by darkfrei
Sat Apr 11, 2020 3:53 pm
Forum: Libraries and Tools
Topic: Simple Buttons
Replies: 9
Views: 18089

Re: Simple Buttons

I am beginner and I am not so friendly with libraries or metatables. My easy solution: -- functions pressed_button = function (buttons) if love.mouse.isDown(1) then local x, y = love.mouse.getX(), love.mouse.getY() for button_name, button in pairs (buttons) do if (x > button.x) and (x < (button.x + ...
by darkfrei
Tue Feb 11, 2020 8:15 am
Forum: Support and Development
Topic: How to make tone signal and multiple tone signals?
Replies: 5
Views: 3926

How to make tone signal and multiple tone signals?

Hi all!

Is it possible to make a tone signal? I've tried with the 1000 Hz 1 second wave file, but I hear small pause every second. Is it possible to make it continuously?

How to make 1000 Hz signal and 1500 Hz signal simultaneously?

UPD: fixed mistakes