Login   Register  
PHP Classes
elePHPant
Icontem

File: demos/001.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Schaefer  >  d3Raphael  >  demos/001.php  >  Download  
File: demos/001.php
Role: Example script
Content type: text/plain
Description: first steps
Class: d3Raphael
Generate JavaScript to access RaphaelJS library
Author: By
Last change:
Date: 2013-01-19 05:23
Size: 380 bytes
 

Contents

Class file image Download
<?php 

include_once("../d3.classes.inc.php"); // download the required d3 package
include_once("../raphael.class.inc.php");


$r raphael("holder")->createVar("r");
stack()->add($r)->line();

$f f3("x","y","r","a1","a2")
      ->
createVar($r->get()->customAttributes(raphael::property)->segment(raphael::property));
stack()->add($f);

echo 
stack()->getInstance();