PHP Classes

PHP Draw Polygons: Display polygons on a page using SVG drawings

Recommend this page to a friend!
  Info   Example   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 72 All time: 10,250 This week: 59Up
Version License PHP version Categories
poligonos 1.0Custom (specified...5HTML, PHP 5, Graphics
Description 

Author

This class can display polygons on a page using SVG drawings.

It can create a drawing with random polygons in different colors.

The generated drawing can be display on a Web page using HTML that embeds the polygons described in the SVG format.

Picture of jean paul Delaye
  Performance   Level  
Name: jean paul Delaye <contact>
Classes: 7 packages by
Country: Mexico Mexico
Innovation award
Innovation award
Nominee: 2x

Example

<?php

require_once('class.poligonos.php');

 
$artwork = new Poligono( "leslie", "350", "3", "100", "1" );


?>


Details

poligonos

Php class that generates random polygons

Requirements

php >= 5.4.0 

Intallation

just copy the class to your classes folder

Basic Usage $artwork = new Poligono( "leslie", "350", "3", "100", "1" );

Inputs: Color palette, maximum size of the polygon, number of vertices, iteration of polygons, scale

sample: here: https://intelector.com/random-polygons/


Screenshots (1)  
  • polygonsscreenshot1
  Files folder image Files (5)  
File Role Description
Plain text file class.poligonos.php Class Class source
Plain text file index.php Example Example script
Plain text file LICENSE Lic. License text
Plain text file README.md Doc. Documentation

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  
 80%
Total:72
This week:0
All time:10,250
This week:59Up