dev-master
9999999-devLibrary to create 3D-like ellipses
MIT
The Requires
- php >=7.0
- ext-gd *
v2.0.0
2.0.0.0Library to create 3D-like ellipses
MIT
The Requires
- php >=7.0
- ext-gd *
Library to create 3D-like ellipses
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)
php composer.phar require rimelek/ellipse3d:2.*, (*3)
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)
Library to create 3D-like ellipses
MIT
Library to create 3D-like ellipses
MIT