Search found 779 matches
- Sat Feb 12, 2011 2:28 pm
- Forum: Support and Development
- Topic: Darker image from framebuffer
- Replies: 5
- Views: 4785
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 ...
- Tue Feb 08, 2011 11:01 am
- Forum: Support and Development
- Topic: Newbie Color Question
- Replies: 35
- Views: 14011
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.
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.
- Fri Feb 04, 2011 9:49 am
- Forum: General
- Topic: WebM attachments now embedded using HTML5 video tags!
- Replies: 8
- Views: 6012
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...
- Tue Feb 01, 2011 10:13 pm
- Forum: General
- Topic: WebM attachments now embedded using HTML5 video tags!
- Replies: 8
- Views: 6012
Re: WebM attachments now embedded using HTML5 video tags!
Weeee!
Excellent work.- Fri Jan 28, 2011 7:44 pm
- Forum: Support and Development
- Topic: [How to] use the resolution of the desktop
- Replies: 1
- Views: 2234
[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...
- Wed Jan 26, 2011 6:11 pm
- Forum: General
- Topic: Passing False into a function
- Replies: 7
- Views: 2951
Re: Passing False into a function
How about:
From the Lua manual ( http://www.lua.org/manual/5.1/manual.html#2.5.3 ):
Code: Select all
self.visible = visible ~= false and true
The disjunction operator or returns its first argument if this value is different from nil and false; otherwise, or returns its second argument.
- Sun Jan 16, 2011 11:46 am
- Forum: Support and Development
- Topic: What does ImageData:getPixel return exactly? (new questions)
- Replies: 16
- Views: 8296
Re: What does ImageData:getPixel return exactly? (new questi
Code: Select all
for w = 1, width, -1 do
It will never enter the loop unless width is 1 or lower.
- Sun Jan 16, 2011 7:50 am
- Forum: Support and Development
- Topic: What does ImageData:getPixel return exactly? (new questions)
- Replies: 16
- Views: 8296
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...
- Wed Dec 29, 2010 5:36 am
- Forum: Support and Development
- Topic: Saving ImageData to a file.
- Replies: 12
- Views: 5591
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...