CAsciiArt.php
public function luminance2character($luminance)
    {
        $position = (int) round($luminance * ($this->charCount - 1));
        $char = $this->characters[$position];
        return $char;
    }
public function luminance2character($luminance)
    {
        $position = (int) round($luminance * ($this->charCount - 1));
        $char = $this->characters[$position];
        return $char;
    }
public function luminance2character ( $ luminance ) { $ position = ( int ) round ( $ luminance * ( $ this -> charCount - 1 ) ) ; $ char = $ this -> characters [ $ position ] ; return $ char ; }
Translate the luminance value to a character.

@param string $position a value between 0-100 representing the
luminance.

@return string with the ascii character.
Translate the luminance value to a character .