enough_ascii_art 0.9.5 copy "enough_ascii_art: ^0.9.5" to clipboard
enough_ascii_art: ^0.9.5 copied to clipboard

outdated

Generates ASCII art using image to ASCII, FIGlet text banner support and emoticon to text conversions.

example/enough_ascii_art_example.dart

import 'dart:io';
import 'package:enough_ascii_art/enough_ascii_art.dart';
import 'package:image/image.dart' as img;

void main() async {
  var image = img.decodeImage(File('./example/enough.jpg').readAsBytesSync());
  var asciiImage = convertImage(image, maxWidth: 40, invert: true);
  print('');
  print(asciiImage);
  var helloWithUtf8Smileys = 'hello world 😛';
  var helloWithTextSmileys =
      convertEmoticons(helloWithUtf8Smileys, EmoticonStyle.western);
  print('');
  print(helloWithTextSmileys);
  print('');
  print('cosmic:');
  var figure = await renderFigletWithFontName('ENOUGH', 'cosmic');
  print(figure);
  print('');
  print('shadow:');
  figure = await renderFigletWithFontName('ENOUGH', 'shadow');
  print(figure);
  print('');
  print('smslant:');
  figure = await renderFigletWithFontName('ENOUGH', 'smslant');
  print(figure);
  print('');
  print('eftifont:');
  figure = await renderFigletWithFontName('ENOUGH', 'eftifont');
  print(figure);
  print('');
  print('big:');
  figure = await renderFigletWithFontName('ENOUGH', 'big');
  print(figure);
  print('');
  print('isometric1:');
  figure = await renderFigletWithFontName('ENOUGH', 'isometric1');
  print(figure);
  print('');
  print('chunky:');
  figure = await renderFigletWithFontName('ENOUGH', 'chunky');
  print(figure);
  print('');
}
23
likes
0
pub points
69%
popularity

Publisher

verified publisherenough.de

Generates ASCII art using image to ASCII, FIGlet text banner support and emoticon to text conversions.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

image, isolate, resource

More

Packages that depend on enough_ascii_art