PHP Classes

splx_graph: Render polygons in HTML pages using DIV elements

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
StarStarStar 57%Total: 440 All time: 6,256 This week: 488Up
Version License PHP version Categories
splx_graph 1.0GNU General Publi...4.0HTML, Graphics
Description 

Author

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: 46
All time rank: 106040 in Italy Italy
Week rank: 170 Up7 in Italy Italy Up
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

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

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:440
This week:0
All time:6,256
This week:488Up
User Ratings User Comments (2)
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1648
 
nice job, I like it :)
14 years ago (bitperbit)
67%StarStarStarStar
fantastic (:
14 years ago (Tufan Baris YILDIRIM)
70%StarStarStarStar