PHP Classes

PHP Golden Rectangle Generator: Create a rectangle with perfect proportions

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 109 This week: 1All time: 9,634 This week: 560Up
Version License PHP version Categories
v_ 1.0.0Freeware5PHP 5, Graphics
Description 

Author

This class can be used to create a rectangle with perfect proportions.

It takes the height of a rectangle to be generated and creates an image with a width that is equal to the height multiplied by a golden number factor.

The generated image is served as the current script output in PNG format.

In Spanish:

Brinda un rectángulo con las proporciones perfecta.

Crea un rectángulo con las proporciones perfectas segun el numero de oro usadas en la arquitectura. Pasando como parametro uno de los lados del rectángulo el script devuelve el otro lado con la proporción correcta.

Innovation Award
PHP Programming Innovation award nominee
February 2020
Number 5
The golden rectangle is a rectangle that has a proportion ratio between their sides in such a way that it can that it is perfect for activities like architecture of buildings or artistic paintings to achieve balance aesthetic beauty.

This class can create a rectangle with perfect proportions based on the golden rectangle algorithm.

Manuel Lemos
Picture of Dannel
  Performance   Level  
Name: Dannel <contact>
Classes: 9 packages by
Country: Cuba Cuba
Age: 30
All time rank: 30438 in Cuba Cuba
Week rank: 416 Up1 in Cuba Cuba Up
Innovation award
Innovation award
Nominee: 5x

Example

<?php
include 'proportion.php';
$obj=new proportion;
echo
$obj->prop(300);
?>


  Files folder image Files  
File Role Description
Accessible without login Plain text file Example1.php Example Example script
Plain text file proportionClass.php Class Main class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:109
This week:1
All time:9,634
This week:560Up