PHP Classes

splx_graph: Render polygons in HTML pages using DIV elements

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 57%Total: 440 All time: 6,252 This week: 488Up
Version License PHP version Categories
splx_graph 1.0GNU General Publi...4.0HTML, Graphics


This class can be used to render polygons in HTML pages just using DIV elements.

It can generate HTML for presenting different types of polygons in Web page given their shape and coordinates in pixels.

Currently it can draw individual pixels, lines, rectangles, circles, or any other polygon given it coordinates of its edges.

Innovation Award
PHP Programming Innovation award nominee
May 2010
Number 5

Prize: One copy of Delphi for PHP
Originally Web pages were not meant for drawing vector graphics. Usually you would need to resort to bitmap graphic images to render diagrams with polygons and other vectorial shape types.

Nowadays there are some browser extensions that support drawing vector graphics in a Web page but their availability depends on the installed browser.

This class provides a alternative solution for drawing vector graphics that consists of using DIV tags laid out in a special way to make them appear as vectorial shapes.

Manuel Lemos
Picture of Alessandro Vernassa (speleoalex)
Name: Alessandro Vernassa ... is available for providing paid consulting. Contact Alessandro Vernassa ... .
Classes: 3 packages by
Country: Italy Italy
Age: 45
All time rank: 106140 in Italy Italy
Week rank: 72 Up3 in Italy Italy Up
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

  • splx_graph.png
  Files folder image Files  
File Role Description
Plain text file splx_graph.php Class main class
Plain text file test.php Example example

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:6,252
This week:488Up
User Ratings User Comments (2)
 All time
nice job, I like it :)
13 years ago (bitperbit)
fantastic (:
14 years ago (Tufan Baris YILDIRIM)