Inverting Button Graphics

I was just wondering if it was possible to have button graphics automatically inverted when pressed. I couldn’t find anything on a quick look at the image APIs, though I did see the photoshop filter post (though I realise its probably still in beta, and thus not available).

Cheers,

Mourdos

You talking about inverting color or flipping image

Talking about colour inverting.

Since corona doesn’t have an invert color API and you can’t get rgb pixel data then no but you may be able to apply a tint

Or include an already inverted image as the over image

We were already supplying an over image, up until the point where my boss realised that he needed to invert over 100 images for a set of designs, then he asked me if it could be done programmatically. He’s decided that we shall just use a single inverted button insert.

Graphics keep getting changed every couple of days, at least I planned ahead and made make the folders generic and settable by config >.>

Cheers anyway.

If you create 2 spritesheets one for default buttons and one for over buttons then you only have 1 image to invert. Then combine them into 1 spritesheet Just a suggestion

Would be a nice feature if you could use 2 spritesheets

I could definitely suggest making one sprite sheet with all the of images, I believe that paint.net is perfectly happy inverting only a selection. Have to figure out how to make sprite sheets work, only used normal images so far, I suspect its not too hard.

Thanks for all your help, its been really useful.

Welcome

You talking about inverting color or flipping image

Talking about colour inverting.

Since corona doesn’t have an invert color API and you can’t get rgb pixel data then no but you may be able to apply a tint

Or include an already inverted image as the over image

We were already supplying an over image, up until the point where my boss realised that he needed to invert over 100 images for a set of designs, then he asked me if it could be done programmatically. He’s decided that we shall just use a single inverted button insert.

Graphics keep getting changed every couple of days, at least I planned ahead and made make the folders generic and settable by config >.>

Cheers anyway.

If you create 2 spritesheets one for default buttons and one for over buttons then you only have 1 image to invert. Then combine them into 1 spritesheet Just a suggestion

Would be a nice feature if you could use 2 spritesheets

I could definitely suggest making one sprite sheet with all the of images, I believe that paint.net is perfectly happy inverting only a selection. Have to figure out how to make sprite sheets work, only used normal images so far, I suspect its not too hard.

Thanks for all your help, its been really useful.

Welcome