endy
endy

Reputation: 3872

Invert all colors from within the application

Is it possible to replicate the white on black feature that the iphone has from within an application.

I am trying to set up a toggle and when turned on the application will invert all of it's colors. Essentially creating a 'night time mode'

Upvotes: 0

Views: 834

Answers (1)

pasawaya
pasawaya

Reputation: 11595

You could use Core Image. There is a filter called CIColorInvert which inverts the colors in an image. You can find out more about Core Image filters here.

If you want some help with Core Image, you could check out this tutorial by Ray Wenderlich: Beginning Core Image in iOS 5 Tutorial

Hope this helps!

Upvotes: 1

Related Questions