Search found 1186 matches

by darkfrei
Mon Apr 20, 2020 8:45 am
Forum: Support and Development
Topic: How to make tone signal and multiple tone signals?
Replies: 5
Views: 4008

Re: How to make ton signal and multiple ton signals?

zorg wrote: Sun Apr 12, 2020 6:08 am Hi and welcome to the forums.
Thank you a lot! I need test it before, but I need also the example how to play two tone signals simultaneously.
For example 440 and 880 Hz with sinus form wave.
by darkfrei
Mon Apr 20, 2020 8:36 am
Forum: General
Topic: love.draw.line - line width is one pixel too wide
Replies: 4
Views: 4263

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

We don't know what your coordinates are, but assuming they are centred in the pixel, you can use love.graphics.setLineStyle("rough") to get rid of the issue. Thanks, with the "rough" style works like it must. But why the square doesn't need this trick? It makes by default exactl...
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: 4263

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: 4263

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: 18266

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: 4008

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