###ASCIIKit is a powerful framwork to generate ASCII matrix on iOS.
Drag ASCIIKit.xcodeproj
into your project and add ASCIIKit.framework
into Embedded Binaries
and Linked frameworks and libraries
Original Image:
![](https://raw.githubusercontent.com/wddwycc/ASCIIKit/master/DemoImages/original Image.jpg)
(from: https://d13yacurqjgara.cloudfront.net/users/60266/screenshots/1974826/open-uri20150316-11-vz33qe_1x)
testImage.ASCIIGenerateColorfulMatrixWithSingleCharacter("#", pixelsPerSymbol: 2) { (attributedString) -> Void in
let image = attributedString.generateImage()
}
testImage.ASCIIGenerateGrayScaleMatrixWithSingleCharacter("#", pixelsPerSymbol: 2) { (attributedString) -> Void in
let image = attributedString.generateImage()
}
testImage.ASCIIGenerateGrayScaleMatrixWithMultipleCharacter(pixelsPerSymbol: 2) { (attributedString) -> Void in
let image = attributedString.generateImage()
}
The calculation is done Asynchoriously with CoreGraphics.
See more detail in the demo project~.