ASCIITransform
public class ASCIITransform : Transform
Converts the image to black and white.
-
Initializes an
ASCIITransformobject.Declaration
Swift
public init()
-
Adds the
backgroundoption.Declaration
Swift
@discardableResult func background(_ value: UIColor) -> SelfParameters
valueSets the background color to display behind the image.
-
Adds the
foregroundoption.Declaration
Swift
@discardableResult func foreground(_ value: UIColor) -> SelfParameters
valueSets the foreground color to display behind the image.
-
Adds the
coloredoption.Sets output as colored.
Declaration
Swift
@discardableResult func colored() -> Self -
Adds the
sizeoption.Declaration
Swift
@discardableResult func size(_ value: Int) -> SelfParameters
valueThe size of the overlayed image as a percentage of its original size. Valid range:
10...100 -
Reverses the character set used to generate the ASCII output. Works well with dark backgrounds.
Declaration
Swift
@discardableResult func reverse() -> Self
View on GitHub
ASCIITransform Class Reference