Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help,
read this .
Jake
Prole
Posts: 27 Joined: Sun Jul 20, 2008 2:01 pm
Post
by Jake » Mon Jul 21, 2008 1:52 pm
Can I create an image from something.gif and then make anything that is pink (255,0,255) transparent? Pixel images are easy to edit in MSPaint
Does Love support this (Nothing in the docs)? I know there is a SDL_SetColorKey function.
rude
Administrator
Posts: 1052 Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway
Post
by rude » Mon Jul 21, 2008 3:37 pm
Sorry, LÖVE does not support this. You'll have to use some sort of alpha-capable format. Transparent pixels in normal GIFs
may end up as transparent in LÖVE, but I've never actually tried it.
As for SDL_SetColorKey, we're not using SDL_surfaces, so that won't work.
Jake
Prole
Posts: 27 Joined: Sun Jul 20, 2008 2:01 pm
Post
by Jake » Mon Jul 21, 2008 3:54 pm
Ah okay, it was just for convenience really. Transparent PNGs work fine.
Users browsing this forum: Ahrefs [Bot] and 5 guests