Search found 779 matches

by Boolsheet
Sat Feb 12, 2011 2:28 pm
Forum: Support and Development
Topic: Darker image from framebuffer
Replies: 5
Views: 4744

Re: Darker image from framebuffer

The alpha is handled correctly in LÖVE. The framebuffer appears darker, because the default blendMode "alpha" blends it twice this way. This is expected behaviour. Sadly, we don't have the proper blendMode available at the moment to to this the correct way. There's an issue in the tracker ...
by Boolsheet
Tue Feb 08, 2011 11:01 am
Forum: Support and Development
Topic: Newbie Color Question
Replies: 35
Views: 13899

Re: Newbie Color Question

Yes, the alpha defaults to 255 in that case.

I see that you use love.graphics.setColorMode, so I'm assuming you know that the color you set with love.graphics.setColor affects images.
The color in images never were a problem for me. Maybe you could expand your code example a bit more.
by Boolsheet
Fri Feb 04, 2011 9:49 am
Forum: General
Topic: WebM attachments now embedded using HTML5 video tags!
Replies: 8
Views: 5941

Re: WebM attachments now embedded using HTML5 video tags!

What is a good way to do a screencap on Windows encoded as WebM? Hm, always depends what you need and want. Like thelinx said, you probably want to encode it after you captured it. There are not many applications that give you the option to use your own codec and VP8 editing sounds like it could be...
by Boolsheet
Tue Feb 01, 2011 10:13 pm
Forum: General
Topic: WebM attachments now embedded using HTML5 video tags!
Replies: 8
Views: 5941

Re: WebM attachments now embedded using HTML5 video tags!

Weeee!
love.webm
Game Slave nogame screen
(3.58 MiB) Downloaded 1254 times
Excellent work.
by Boolsheet
Fri Jan 28, 2011 7:44 pm
Forum: Support and Development
Topic: [How to] use the resolution of the desktop
Replies: 1
Views: 2199

[How to] use the resolution of the desktop

There's always the chance that someone will run your game on a system with a weird resolution. Some small netbooks, for example, don't have a display height of 600, which is problematic with the default 800x600 of LÖVE. Fortunately you can make LÖVE use the desktop resolution if you set the width an...
by Boolsheet
Wed Jan 26, 2011 6:11 pm
Forum: General
Topic: Passing False into a function
Replies: 7
Views: 2917

Re: Passing False into a function

How about:

Code: Select all

self.visible = visible ~= false and true
From the Lua manual ( http://www.lua.org/manual/5.1/manual.html#2.5.3 ):
The disjunction operator or returns its first argument if this value is different from nil and false; otherwise, or returns its second argument.
by Boolsheet
Sun Jan 16, 2011 11:46 am
Forum: Support and Development
Topic: What does ImageData:getPixel return exactly? (new questions)
Replies: 16
Views: 8207

Re: What does ImageData:getPixel return exactly? (new questi

Code: Select all

for w = 1, width, -1 do
Are you sure this is what you want?
It will never enter the loop unless width is 1 or lower.
by Boolsheet
Sun Jan 16, 2011 7:50 am
Forum: Support and Development
Topic: What does ImageData:getPixel return exactly? (new questions)
Replies: 16
Views: 8207

Re: What does ImageData:getPixel return exactly?

Your function is trying to get a pixel outside of the image. This throws an exception and love quits. ImageData in love goes from 0, 0 to width-1, height-1 . To stay inside the image you could change imageData:getPixel(w,h) to imageData:getPixel(w-1,h-1) Some other things: Creating tables in Lua has...
by Boolsheet
Wed Dec 29, 2010 5:36 am
Forum: Support and Development
Topic: Saving ImageData to a file.
Replies: 12
Views: 5515

Re: Saving ImageData to a file.

Don't give me all the credit TechnoCat, you came up with mapPixels to swap the channels. ;) How hard to you think it would be to get RLE up and going? Not hard, just slow. This somehow works, but it's not pretty: function tga_32bit_rle(data) local dataLength = #data local dataTable = {} local dataIn...