<?php include('blocks.php') $str2=' ******* *+++*** ****+** ***+*** ****+** *+++*** ******* '; $str1=' ******** **+***+* ***+*+** ****+*** ***+*+** **+***+* ******** '; $colors=array( "0"=>"000000", //background. To set background use only "0" "."=>"ccffff", "*"=>"666666", "+"=>"cccccc" ); $a=new blocks(5,2,5,$colors); $a->addMatrix($str1); $a->addMatrix($str2); $a->render('jpg');