Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Build all raphael examples

  • Loading branch information...
commit e78c06364490915afc93da23c412f438451f23f8 1 parent 939f193
@keesbos keesbos authored
Showing with 4 additions and 2 deletions.
  1. +3 −1 examples/raphael/build.sh
  2. +1 −1  examples/raphael/test.py
View
4 examples/raphael/build.sh 100644 → 100755
@@ -4,4 +4,6 @@
options="$*"
#if [ -z $options ] ; then options="-O";fi
-../../bin/pyjsbuild --print-statements $options test
+for f in events graffle raphael_showcase spinner test ; do
+ ../../bin/pyjsbuild --print-statements $options $f
+done
View
2  examples/raphael/test.py
@@ -45,7 +45,7 @@ def __init__(self):
alpha = beta * i - math.pi/2
cos = math.cos(alpha)
sin = math.sin(alpha)
- path = self.canvas.path(pathParams)
+ path = self.canvas.path(data=None, attrs=pathParams)
path.moveTo(cx + r1 * cos, cy + r1 * sin)
path.lineTo(cx + r2 * cos, cy + r2 * sin)
self.opacity.append(1 / self.numSectors * i)
Please sign in to comment.
Something went wrong with that request. Please try again.