ACIL FM
Dark
Refresh
Current DIR:
/usr/share/doc/cpanel-php84-xml-svg/docs/examples
/
usr
share
doc
cpanel-php84-xml-svg
docs
examples
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
basic.php
2.48 MB
chmod
View
DL
Edit
Rename
Delete
radialGradient.php
1.3 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/share/doc/cpanel-php84-xml-svg/docs/examples/radialGradient.php
<?php /** * XML_SVG Radial Gradient Example * * @package XML_SVG */ require_once 'XML/SVG.php'; $svg = new XML_SVG_Document(array('width' => 400, 'height' => 400)); $g = new XML_SVG_Group(); $g->addParent($svg); $gradient = new XML_SVG_RadialGradient(array('id' => 'ShadowGradient', 'cx' => '50%', 'cy' => '50%', 'r' => '50%', 'fx' => '50%', 'fy' => '50%')); $stop1 = new XML_SVG_Stop(array('offset' => '90%', 'stop-color' => 'black', 'stop-opacity' => 0.5)); $gradient->addChild($stop1); $stop2 = new XML_SVG_Stop(array('offset' => '100%', 'style' => 'stop-color:rgb(0,0,0);stop-opacity:0')); $gradient->addChild($stop2); $defs = new XML_SVG_Defs(); $defs->addChild($gradient); $g->addChild($defs); $shadow = new XML_SVG_Circle(array('cx' => 170, 'cy' => 170, 'r' => 150, 'style' => 'fill:url(#ShadowGradient)')); $g->addChild($shadow); $svg->printElement();
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply