2017 © Pedro PelĂĄez
 

library ellipse3d

Library to create 3D-like ellipses

image

rimelek/ellipse3d

Library to create 3D-like ellipses

  • Monday, September 26, 2016
  • by rimelek
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Description

This library is just a rewritten version of v1.0.0 from 2009. Do not expect real 3D graphic., (*1)

Here some example what you can do with this library: Pictures, (*2)

Installation

php composer.phar require rimelek/ellipse3d:2.*, (*3)

Requirements

  • PHP >= 7.0
  • GD extension

Usage

Create a Configuration instance:, (*4)

use Rimelek\Ellipse3D\Configuration;
use Rimelek\Ellipse3D\Ellipse3D;

$configuration = new Configuration();

Set options:, (*5)

$configuration
    ->setBackgroundColor($backgroundColor)
    ->setFillColor($fillColor)
    ->setBorderColor($borderColor)
    ->setLineColorsX($lineColors)
    ->setLineColorsY($lineColors)
    ->setQuality($quality)
    ->setSpace($space)
    ->setType(Ellipse3D::TYPE_GIF)
    ->setHeight($height)
    ->setWidth($width)
    ->setCanvasHeight($canvasHeight)
    ->setCanvasWidth($canvasWidth)
    ->setTransparentBackground(false);

All colors are in the following format: r,g,b (Ex. 255,0,255), (*6)

Pass it to Ellipse3D's constructor:, (*7)

$ellipse = new Ellipse3D($configuration);

Show the result:, (*8)

$ellipse->show();

Note that it sends the appropriate HTTP header for the chosen image type., (*9)

The Versions

26/09 2016

dev-master

9999999-dev

Library to create 3D-like ellipses

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-gd *

 

26/09 2016

v2.0.0

2.0.0.0

Library to create 3D-like ellipses

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-gd *