Source for file sphere.php
Documentation is available at sphere.php
require_once('Image/3D.php');
$light = $world->createLight ('Light', array (-2000 , -2000 , -2000 ));
$redLight = $world->createLight ('Light', array (90 , 0 , 50 ));
$sphere = $world->createObject ('sphere', array ('r' => 150 , 'detail' => 4 ));
$renderer = $world->createRenderer ('perspectively');
$world->createDriver ('GD');
$world->render (400 , 400 , 'example.png');
Documentation generated on Mon, 11 Mar 2019 15:48:14 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|