Login   Register  
PHP Classes
elePHPant
Icontem

File: demos/002.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/002.php  >  Download  
File: demos/002.php
Role: Example script
Content type: text/plain
Description: second example
Class: d3Raphael
Generate JavaScript to access RaphaelJS library
Author: By
Last change:
Date: 2013-01-19 05:24
Size: 552 bytes
 

Contents

Class file image Download
<?php 

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

raphael(array(10,50,320,200))
  ->
createVar("paper")
  ->
toStack("paper");
  
stack()->get("paper")->get()
    ->
circle(50,40,10)
    ->
createVar("circle")
    ->
toStack("circle");
stack()->get("circle")->get()
    ->
attr("fill""#f00")
    ->
colon()->linebreak()->toStack();
stack()->get("circle")->get()
    ->
attr("stroke""#fff")
    ->
colon()->linebreak()->toStack();


echo 
stack()->getInstance();