Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mgdm/canto.php

A port of the Canto.js drawing library for PHP
https://github.com/mgdm/canto.php

Last synced: about 1 month ago
JSON representation

A port of the Canto.js drawing library for PHP

Awesome Lists containing this project

README

        

Canto.PHP
=========

This is a port of the canto.js library for JavaScript to PHP. It wraps
around the PECL/Cairo library to add a fluent API mostly matching that
of the original API.

canto.js original announcement:
http://www.davidflanagan.com/2010/07/cantojs-an-impr.html

Repository:
http://code.google.com/p/canto-js/

This PHP port is written by Michael Maclean with thanks
to David Flanagan for the inspiration.

Example
=======

$s = new CairoImageSurface(CairoFormat::ARGB32, 400, 400);
$c = new Canto($s);
$data = $c->moveTo(100, 100)
->lineTo(200, 200, 200, 250, 100, 250, 100, 100)
->stroke();