Is there any sample code or example for CITemperatureAndTint? I have read its documentation but i need some example to implement it.
Is there any sample code or example for CITemperatureAndTint? I have read its documentation but i need some example to implement it.
Maybe it can help you @Sherwin Zadeh
Temperature:
var value: CGFloat = 0 // Min: -3000, Max: 3000
return image.applyingFilter("CITemperatureAndTint", parameters: [
"inputNeutral": CIVector.init(x: value + 6500, y: 0),
"inputTargetNeutral": CIVector.init(x: 6500, y: 0)
])
Tint:
var value: CGFloat = 0 // Min: -100, Max: 100
return image.applyingFilter("CITemperatureAndTint", parameters: [
"inputNeutral": CIVector.init(x: 6500, y: value),
"inputTargetNeutral": CIVector.init(x: 6500, y: 0)
])