PHP Classes

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Artur Graniszewski  >  ASCII art generator for PHP  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: ASCII art generator for PHP
Generate a text that looks like a given image
Author: By
Last change:
Date: 4 years ago
Size: 326 bytes


Class file image Download

$x = new AsciiArt('example.jpg');
$color = $x->getBackgroundColor()->getHexValue();
<title>ASCII art demo</title>
<body bgcolor="#<?php echo $color; ?>">
$x->show(range("a", "z"), 0.25, true, true);