~ubuntu-branches/ubuntu/lucid/ming/lucid

« back to all changes in this revision

Viewing changes to test/Filter/test04.php

  • Committer: Bazaar Package Importer
  • Author(s): Ilya Barygin
  • Date: 2010-02-11 10:57:41 UTC
  • mfrom: (2.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100211105741-lzpmxc0703c4bo1w
Tags: 1:0.4.3-1ubuntu1
* Merge from Debian unstable (LP: #192664), remaining changes:
  - Python 2.6 transition:
    - debian/rules:
      + Include /usr/share/python/python.mk.
      + Add py_setup_install_args macro to setup.py install.
      + Installed modules differ between python versions and can't be shared,
        use DH_PYCENTRAL=nomove.
    - Remove unnecessary debian/python-ming.{dirs,files}, Python 2.3 is not
      supported anymore.
* debian/control: separate dependencies by commas.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/php -c.
 
2
 
 
3
<?
 
4
 
 
5
$m = new SWFMovie(7);
 
6
$s = new SWFShape();
 
7
 
 
8
$s->setLine(4, 25, 0, 0, 128);
 
9
$s->movePenTo(5, 5);
 
10
$s->drawLineTo(0, 10);
 
11
 
 
12
$bl = new SWFBlur(5, 5, 2);
 
13
$shadow = new SWFShadow(0.79, 5, 1.0);
 
14
 
 
15
$c1 = Array();
 
16
$c1["red"] = 0;
 
17
$c1['green'] = 0;
 
18
$c1['blue'] = 0;
 
19
$c1['alpha'] = 0xff;
 
20
 
 
21
$c2 = Array();
 
22
$c2["red"] = 0xff;
 
23
$c2['green'] = 0xff;
 
24
$c2['blue'] = 0xff;
 
25
$c2['alpha'] = 0xff;
 
26
 
 
27
 
 
28
$f = new SWFFilter(SWFFILTER_TYPE_BEVEL, $c1, $c2, $bl, $shadow, SWFFILTER_MODE_INNER | SWFFILTER_MODE_KO);
 
29
 
 
30
 
 
31
$bu = new SWFButton();
 
32
$bu->addShape($s, SWFBUTTON_UP | SWFBUTTON_HIT | SWFBUTTON_OVER | SWFBUTTON_DOWN);
 
33
$item = $m->add($bu);
 
34
$item->addFilter($f);
 
35
$m->save("test04.swf");
 
36
?>