How to create a colour splash effect in iOS using swift? - ios

I am looking to create colour splash effect using swift for my iOS app.
I was considering working with UIBezier path to create some random splash shapes so that I could just fill in colour into those paths. Other than that haven't really had any other ideas I could use to achieve this from my search.
Could anyone help me out and point me in right direction for how I could achieve this ?

I would try Diamond-square or Lazy Flood fill algorithm.
Also take a look at other computer graphics algorithms:
https://en.wikipedia.org/wiki/Category:Computer_graphics_algorithms

Related

How to put the Camera input on the screen and blur it?

I'm fairly new to iOS development.
What I want to achive is to put the stream from the camera in a UIView class. (and size it with a frame).
So i don't need controls or the possibility to capture images, just on the screen what the camera sees.
Furthermore, i want that view to be blurred. Is there a way (or a library) to put a gaussian blur on that videostream?
Thank you!
You can use GPUImage https://github.com/BradLarson/GPUImage try realtime effects they provide. That will solve your problem for sure.
To display the camera on screen without controls you will need to use AVFoundation. Take a look at Apple's SquareCam sample code.
As for the blur a simpler solution might be creating semi-transparent image with a blur effect and placing it about the camera view.

iOS -how to Group controls?

I'm new to iOS development and can't find any good guides on how to build a GUI that isn't just controls on a view. I need to group texts, images and controls in colored areas similar to the picture in the link below. Especially the brown background with the white area with rounded corners is exactly what I need (the brown frame).
Can anyone point me in the right direction?
I'm targeting iOS 5 and higher....
http://www.filemaker.co.uk/products/filemaker-pro/images/whats_new/graphic_ios_ipad_iphone.png
You need to make everything as a part of superview..please see the image..

Any idea about simulating the stroke in iOS Paint app?

I'm working on an paint app for iOS platform.And I used CGContextAddQuadCurveToPoint to make the line more smooth. But I'm stuck in how to simulate the stroke.
Papers 53 is a really cool app. I just wanna simulate the stroke just like what 'Papers 53' does.
Any idea about changing the width of the line dynamically and smoothly during drawing?
I found an article about this stuff.
http://www.merowing.info/2012/04/drawing-smooth-lines-with-cocos2d-ios-inspired-by-paper/
This one is really reliable and I just used its algorithm to simulate smooth stroke by using Quartz2d successfully.

iOS Sdk: UIImage Hue Cycle

I'm new to developing and I am trying to figure out how I could create a simple method to change an image HUE cyclically and programmatically. A sort of image effect that scan all the frequencies of the color spectrum, like this one, for example. I know I could create a set of images to animate this, but that would require memory space I don't want to waste. I know there is a way to create a loop cycle that allows me to scan all the colors of an image.
Thank you in advance for help.
The CIHueAdjust CoreImage filter is available on iOS 5 and later. It should do what you want.

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'
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!

Resources