Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

wddwycc/ASCIIKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

---

###ASCIIKit is a powerful framwork to generate ASCII matrix on iOS.

How to install:

Drag ASCIIKit.xcodeproj into your project and add ASCIIKit.framework into Embedded Binaries and Linked frameworks and libraries

How to Use:

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)

Generate ASCII single character colorful matrix:
testImage.ASCIIGenerateColorfulMatrixWithSingleCharacter("#", pixelsPerSymbol: 2) { (attributedString) -> Void in
    let image = attributedString.generateImage()
}

Generate ASCII single character grey scale matrix:
testImage.ASCIIGenerateGrayScaleMatrixWithSingleCharacter("#", pixelsPerSymbol: 2) { (attributedString) -> Void in
    let image = attributedString.generateImage()
}

Generate ASCII multi character grey scale matrix:
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~.

About

ASCII Art generator for iOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published