Source for file text.php
Documentation is available at text.php
require_once('Image/3D.php');
$light = $world->createLight ('Light', array (-20 , -20 , -20 ));
$text = $world->createObject ('text', 'Image_3D_Object_Text');
$text->transform ($world->createMatrix ('Rotation', array (0 , 10 , 0 )));
$text->transform ($world->createMatrix ('Move', array (-50 , 0 , 20 )));
$text->transform ($world->createMatrix ('Scale', array (3 , 3 , 3 )));
$world->setOption (Image_3D::IMAGE_3D_OPTION_BF_CULLING , false );
$world->setOption (Image_3D::IMAGE_3D_OPTION_FILLED , true );
$world->createRenderer ('perspectively');
$world->createDriver ('GD');
$world->render (400 , 50 , 'Image_3D_Object_Text.png');
Documentation generated on Mon, 11 Mar 2019 15:48:15 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|