Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mgdm/canto.php
- Owner: mgdm
- Created: 2010-08-03T19:50:07.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-10-25T18:20:48.000Z (about 14 years ago)
- Last Synced: 2024-10-14T12:36:20.652Z (2 months ago)
- Language: PHP
- Homepage:
- Size: 97.7 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
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.htmlRepository:
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();