static function Main() { printf("libcaca %s PHP test\n", Libcaca::getVersion()); printf("(c) 2006 Jean-Yves Lamoureux <*****@*****.**>\n"); printf("(c) 2007 Sam Hocevar <*****@*****.**>\n"); printf("(c) 2008 Benjamin C. Wiley Sittler <*****@*****.**>\n"); /* Instanciate a caca canvas */ $cv = new DemoCanvas(); /* We have a proper canvas, let's display it using Caca */ $dp = new DemoDisplay($cv); /* Random number. This is a static method, not to be used with previous instance */ printf("A random number: %d\n", Libcaca::Rand(0, 1337)); $dp->EventLoop(); }