Search found 1551 matches

by pgimeno
Wed Apr 17, 2019 10:24 am
Forum: Support and Development
Topic: Image Layering
Replies: 5
Views: 174

Re: Image Layering

If 'multiply' with a single colour is all you need, then yes, setColor should work (the problem is that it doesn't leave any whitish highlights like other blending modes do; such plain tinting is inadequate for some applications). LÖVE's blending modes are just a small subset of what GIMP or Photosh...
by pgimeno
Tue Apr 16, 2019 2:19 pm
Forum: General
Topic: What of Love's API uses DPI independent coords?
Replies: 1
Views: 106

Re: What of Love's API uses DPI independent coords?

ImageData works with pixels. Right off the bat I don't remember any others.
by pgimeno
Tue Apr 16, 2019 1:54 pm
Forum: Support and Development
Topic: Image Layering
Replies: 5
Views: 174

Re: Image Layering

You first need to come up with a procedure that fits your needs. Experiment with gimp until you know what process should be applied to every image. Once you have the procedure, you can mimic it with LÖVE in one of several ways. Processing ImageData with ImageData:mapPixel is one. Using canvases and ...
by pgimeno
Mon Apr 15, 2019 4:49 pm
Forum: Support and Development
Topic: Click to Move Question
Replies: 5
Views: 177

Re: Click to Move Question

You don't need angles for this :) Every time you're calculating an angle just to take its sine or cosine, chances are you're wasting calculations. if distance > stepSize then -- if we're further away than stepSize, move towards the mouse's location in a straight line circle.x = circle.x + (mouse.x -...
by pgimeno
Sun Apr 14, 2019 11:58 am
Forum: Support and Development
Topic: Android Scaling Issues
Replies: 5
Views: 590

Re: Android Scaling Issues

My only idea is to check for any notification in love.resize.

Maybe someone else can shed more light on the issue.
by pgimeno
Sun Apr 14, 2019 11:35 am
Forum: Support and Development
Topic: Android Scaling Issues
Replies: 5
Views: 590

Re: Android Scaling Issues

Could your problem be related to the space reserved for the system buttons? I don't know how that's handled in LÖVE, if at all.
by pgimeno
Fri Apr 12, 2019 1:44 am
Forum: Support and Development
Topic: Löve for Android runs on a different resolution than the native one
Replies: 3
Views: 344

Re: Löve for Android runs on a different resolution than the native one

I think you're confusing coordinates with pixels. You don't only have 731x411 pixels accessible. The maximum coordinates of the screen are 731 point something and 411 point something; you can use love.window.fromPixels(love.graphics.getPixelWidth()) and ...Height()) to find out the exact values, bec...
by pgimeno
Thu Apr 11, 2019 12:03 pm
Forum: Support and Development
Topic: Löve for Android runs on a different resolution than the native one
Replies: 3
Views: 344

Re: Löve for Android runs on a different resolution than the native one

This is, unfortunately, not a bug. The coordinates/dimensions are no longer in pixels when highdpi is on, and it's forced to on in Android. Even worse, for some reason, the returned size is rounded, making calculations inaccurate. The real pixel dimensions can be obtained with love.graphics.getPixel...
by pgimeno
Wed Apr 10, 2019 12:44 am
Forum: Support and Development
Topic: Performance of the function love.graphics.stencil
Replies: 4
Views: 402

Re: Performance of the function love.graphics.stencil

Forgot to say. Maybe you can just use a scissor instead of a stencil? That should be faster.
by pgimeno
Mon Apr 08, 2019 11:00 am
Forum: Support and Development
Topic: Performance of the function love.graphics.stencil
Replies: 4
Views: 402

Re: Performance of the function love.graphics.stencil

Used this way, yes it's slow. It's switching to stencil mode, drawing to the stencil, then switching to drawing mode and drawing to the screen, for every rectangle you're drawing, and that prevents parallelism. Perhaps you could try to make it in two passes, first drawing everything to the stencil b...