//
//  CIRadialGradient.swift  (AUTOMATICALLY GENERATED FILE)
//  CIFilterFactory
//
//  MIT license
//
//  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
//  documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
//  rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
//  permit persons to whom the Software is furnished to do so, subject to the following conditions:
//
//  The above copyright notice and this permission notice shall be included in all copies or substantial
//  portions of the Software.
//
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
//  WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
//  OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
//  OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//  Automatically generated on 2020-07-09 00:57:49 +0000.  Do not edit.

import AVFoundation
import CoreImage
import CoreML
import Foundation

public extension CIFilter {
	@available(macOS 10.4, iOS 5, *)
	@inlinable @objc static func RadialGradient() -> CIFilterFactory.CIRadialGradient? {
		return CIFilterFactory.CIRadialGradient()
	}
}

@available(macOS 10.4, iOS 5, *)
@objc public extension CIFilterFactory {
	///
	/// Radial Gradient
	///
	/// Generates a gradient that varies radially between two circles having the same center. It is valid for one of the two circles to have a radius of 0.
	///
	/// **Links**
	///
	/// [CIRadialGradient Online Documentation](http://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CoreImageFilterReference/index.html#//apple_ref/doc/filter/ci/CIRadialGradient)
	///
	/// [CIFilter.io documentation](https://cifilter.io/CIRadialGradient/)
	///
	@objc(CIFilterFactory_CIRadialGradient) class CIRadialGradient: FilterCore {
		@objc public init?() {
			super.init(name: "CIRadialGradient")
		}

		// MARK: - Inputs

		///
		/// The center of the effect as x and y coordinates.
		///
		///   Class:    CIVector
		///   Type:     CIAttributeTypePosition
		///   Default:  [150 150]
		@objc public dynamic var inputCenter: CIFilterFactory.Point? {
			get {
				return CIFilterFactory.Point(with: self.filter, key: "inputCenter")
			}
			set {
				self.setKeyedValue(newValue?.vector, for: "inputCenter")
			}
		}

		///
		/// The radius of the starting circle to use in the gradient.
		///
		///   Class:    NSNumber
		///   Type:     CIAttributeTypeDistance
		///   Default:  5
		///   minValue: 0.0
		///
		public static let inputRadius0_Range: PartialRangeFrom<Float> = Float(0.0)...
		@objc public dynamic var inputRadius0: NSNumber? {
			get {
				return self.keyedValue("inputRadius0")
			}
			set {
				self.filter.setValue(newValue?.clamped(bounds: CIRadialGradient.inputRadius0_Range), forKey: "inputRadius0")
			}
		}

		///
		/// The radius of the ending circle to use in the gradient.
		///
		///   Class:    NSNumber
		///   Type:     CIAttributeTypeDistance
		///   Default:  100
		///   minValue: 0.0
		///
		public static let inputRadius1_Range: PartialRangeFrom<Float> = Float(0.0)...
		@objc public dynamic var inputRadius1: NSNumber? {
			get {
				return self.keyedValue("inputRadius1")
			}
			set {
				self.filter.setValue(newValue?.clamped(bounds: CIRadialGradient.inputRadius1_Range), forKey: "inputRadius1")
			}
		}

		///
		/// The first color to use in the gradient.
		///
		///   Class:    CIColor
		///   Type:     CIAttributeTypeColor
		///   Default:  rgba(1 1 1 1)
		@objc public dynamic var inputColor0: CIColor? {
			get {
				return self.keyedValue("inputColor0")
			}
			set {
				self.setKeyedValue(newValue, for: "inputColor0")
			}
		}

		///
		/// The second color to use in the gradient.
		///
		///   Class:    CIColor
		///   Type:     CIAttributeTypeColor
		///   Default:  rgba(0 0 0 1)
		@objc public dynamic var inputColor1: CIColor? {
			get {
				return self.keyedValue("inputColor1")
			}
			set {
				self.setKeyedValue(newValue, for: "inputColor1")
			}
		}

		// MARK: - Convenience initializer

		@objc public convenience init?(
			inputCenter: CIFilterFactory.Point = CIFilterFactory.Point(x: 150.0, y: 150.0),
			inputRadius0: NSNumber = 5,
			inputRadius1: NSNumber = 100,
			inputColor0: CIColor,
			inputColor1: CIColor
		) {
			self.init()

			self.inputCenter = inputCenter
			self.inputRadius0 = inputRadius0
			self.inputRadius1 = inputRadius1
			self.inputColor0 = inputColor0
			self.inputColor1 = inputColor1
		}
	}
}
