PHP Classes

Draw Blocks: Generate an image with mapped colored squares

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 328 All time: 7,164 This week: 455Up
Version License PHP version Categories
draw_blocks 0.7GNU General Publi...5PHP 5, Graphics
Description 

Author

This class can be used to generate a picture with mapped colored squares.

It takes as parameters a text string with several rows of characters and an array that defines to which color each character in the string maps.

The class generates an image with rows of squares colored according to the mapping defined parameter text string and color map array.

The generated image is served as the script output in either GIF, PNG or JPEG formats.

Picture of Andrey Nikishaev
Name: Andrey Nikishaev <contact>
Classes: 13 packages by
Country: Ukraine Ukraine
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

Screenshots (2)  
  • blocks.jpg
  • xz.png
  Files folder image Files (5)  
File Role Description
Accessible without login Plain text file blocks.php Class class
Accessible without login Plain text file example.php Example example
Plain text file example2.php Example generating from jpg picture

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:328
This week:0
All time:7,164
This week:455Up