enough_ascii_art 0.8.0
enough_ascii_art: ^0.8.0 copied to clipboard
Generates ASCII art using image to ASCII conversion, FIGlet support and smiley to text translations.
An ASCII art library for Dart developers.
Available under the commercial friendly MPL Mozilla Public License 2.0.
Usage #
Currently you can convert images and emoticons to a plain text representation:
import 'dart:io';
import 'package:enough_ascii_art/enough_ascii_art.dart';
import 'package:image/image.dart' as img;
void main() {
var image = img.decodeImage(File('./example/enough.jpg').readAsBytesSync());
var asciiImage = convertImage(image, maxWidth: 40, invert: true);
print(asciiImage);
var helloWithUtf8Smileys = 'hello world 😛';
var helloWithTextSmileys =
convertEmoticons(helloWithUtf8Smileys, EmoticonStyle.western);
print(helloWithTextSmileys);
}
Installation #
Add this dependency your pubspec.yaml file:
dependencies:
enough_ascii_art: ^0.8.0
The latest version or enough_ascii_art
is .
Features and bugs #
Please file feature requests and bugs at the issue tracker.
Run Example #
After checking out this project, you can run the example from the root with this command:
dart ./example/enough_ascii_art_example.dart
Contribute #
Any contributions are welcome!
Next planned feature is support for FIGlet banner generation.