Commit graph

162 commits

Author SHA1 Message Date
Jürg Lehni
6a483fa8be Rename CurveLocation related functions to *At(offset), and add optional isParameter argument that defines whether offset is a length or a description of curve index / curve parameter. 2011-04-27 21:40:52 +01:00
Jürg Lehni
5200434a07 Move lines.html to Animated folder. 2011-04-27 20:55:28 +01:00
Jonathan Puckey
e2bc249dd8 Add Stars example. 2011-04-26 16:46:36 +02:00
Jonathan Puckey
5ab38268fc Add Extruded example. 2011-04-26 16:04:55 +02:00
Jonathan Puckey
2184fa144b Some minor changes to the Flock example. 2011-04-26 16:01:41 +02:00
Jonathan Puckey
b73afe3fc0 Select paths in smoothing example. 2011-04-26 15:53:38 +02:00
Jonathan Puckey
8f3e6f44a7 Update lines example to use onFrame. 2011-04-26 15:51:56 +02:00
Jonathan Puckey
520e540da7 Update Raster example to use onFrame. 2011-04-26 15:43:01 +02:00
Jürg Lehni
7c51369426 Clean up Curve Time Parametrization example. 2011-04-26 12:31:35 +01:00
Jonathan Puckey
38a1ce0b6a Update Circles example. 2011-04-23 16:30:29 +02:00
Jonathan Puckey
29e27c932e Update Smoothing example. 2011-04-23 16:23:31 +02:00
Jonathan Puckey
36ba812f39 Add path smoothing example. 2011-04-23 15:47:28 +02:00
Jonathan Puckey
ff3d5aca17 Flock example: remove red connection paths. 2011-04-23 14:35:54 +02:00
Jonathan Puckey
c9538e8b53 Merge remote branch 'origin/master' 2011-04-22 18:43:21 +02:00
Jonathan Puckey
ffc5c6d981 Fix BezierTool to work with new segment selection code. 2011-04-22 18:42:32 +02:00
Jürg Lehni
28c9254695 Rename onFrameLoop to onFrame. 2011-04-22 16:31:46 +01:00
Jürg Lehni
4f8ffde130 Clean up Chain example a bit. 2011-04-21 12:36:46 +01:00
Jürg Lehni
d25ab05e25 Simplify vector geometry in Chain example. 2011-04-20 23:29:46 +01:00
Jonathan Puckey
877e9f324c Add port of Metaball script by Hiroyuki Sato to Examples. 2011-04-20 15:41:09 +02:00
Jonathan Puckey
357e6f2db8 Some more work on the Flock example. 2011-04-20 13:07:40 +02:00
Jonathan Puckey
d8b933957a Add Chain example. 2011-04-19 23:32:45 +02:00
Jonathan Puckey
63f1c66be3 Flock: credits & small changes. 2011-04-19 23:32:34 +02:00
Jonathan Puckey
4d6687fd8d Flock: simplify grouping. 2011-04-19 21:38:06 +02:00
Jonathan Puckey
3acb954350 Add Flock example. 2011-04-19 21:27:59 +02:00
Jonathan Puckey
0bc1a9aac6 Simplify BezierTool example. 2011-04-18 18:12:00 +02:00
Jonathan Puckey
d67953c1da RoundedRectangles: use onFrameLoop and other small changes. 2011-04-18 17:48:48 +02:00
Jonathan Puckey
114c058fc6 BezierTool: check segment.point first. 2011-04-18 17:31:05 +02:00
Jonathan Puckey
25b7219536 BezierTool example: small adjustment to instructions. 2011-04-18 15:42:41 +02:00
Jonathan Puckey
8da6e7b883 BezierTool example: click and drag segment handles and points to move them and close the path when clicking on the first segment. 2011-04-18 15:29:18 +02:00
Jonathan Puckey
4d5f4b32fc Letter example: select path to show how it is constructed. 2011-04-17 18:55:16 +02:00
Jonathan Puckey
f8548ca6d4 strokeBounds example: select one path, to show how it is constructed. 2011-04-17 18:49:54 +02:00
Jonathan Puckey
277cf541de Small simplification in RadialRainbows example. 2011-04-07 17:05:25 +02:00
Jonathan Puckey
c875953198 Merge remote branch 'origin/master' 2011-04-07 17:03:33 +02:00
Jonathan Puckey
e76b6db5c0 Update RadialRainbows example to use the new changes in Gradient. 2011-04-07 17:02:46 +02:00
Jürg Lehni
306c22e00c Remove TODO about bug that was fixed in the meantime. 2011-03-25 19:57:49 +02:00
Jürg Lehni
d99d07bda0 Update curve time parametrization example. 2011-03-20 11:41:58 +00:00
Jürg Lehni
c1d70c90bb Add example for curve time parametrization testing. 2011-03-20 00:11:06 +00:00
Jürg Lehni
1267f41559 Add beginning of ObservedRectangle support and test it in animatedStar example. 2011-03-16 23:32:46 +01:00
Jürg Lehni
2fcca38a9c Add support for onFrameLoop() callback to PaperScript. 2011-03-14 22:34:09 +01:00
Jürg Lehni
7e46eeabc4 Use the experimental Event.requestAnimationFrame() rather than setInterval(). 2011-03-14 22:21:27 +01:00
Jürg Lehni
4ec8847859 Use the experimental Event.requestAnimationFrame() rather than setInterval(). 2011-03-14 22:20:04 +01:00
Jonathan Puckey
38018c83f6 Lines example: use 'new Date().getTime()' instead of 'Date.now()'. 2011-03-12 15:33:09 +01:00
Jonathan Puckey
6430baa858 Some small changes to lines example. 2011-03-12 15:28:01 +01:00
Jonathan Puckey
f39895a945 Update lines.html example. 2011-03-12 15:17:08 +01:00
Jonathan Puckey
1bb9a262d9 Add VoronoiTool to examples (work in progress). 2011-03-09 19:40:34 +01:00
Jonathan Puckey
1ae89049ed Make the RadialRainbows example interaction smoother. 2011-03-09 17:08:20 +01:00
Jonathan Puckey
81f48e2168 Add SquareRounded.html example. 2011-03-09 16:15:01 +01:00
Jonathan Puckey
ba42884f57 Move RotationRaster.html from Animated to Scripts. 2011-03-09 13:51:54 +01:00
Jürg Lehni
34a6c7871c Clean-up loading code. 2011-03-08 01:07:26 +00:00
Jürg Lehni
4680283ce7 Simply use document.write() for script loading, as load.js seems not ready for primetime yet (it magically half-broke QUnit on Safari). 2011-03-08 00:58:47 +00:00
Jürg Lehni
798bcd709a Since Firefox does not seem to support the <base> tag for script loading, roll our own solution through the load.js calls. 2011-03-07 23:11:41 +00:00
Jürg Lehni
e32549aaf2 Switch to using load.js for loading the various parts of the library during development. 2011-03-07 18:36:42 +00:00
Jonathan Puckey
8bfa4e6073 Update RadialRainbows example to use Color#hue. 2011-03-07 16:07:30 +01:00
Jürg Lehni
9fdbd0146d Rename MathUtils to Numerical. 2011-03-07 00:21:04 +00:00
Jürg Lehni
6735218ab5 Merge remote-tracking branch 'origin/master' 2011-03-06 14:59:30 +00:00
Jürg Lehni
04a13bce19 Add strokeBounds example, and a test for stroke transformation with symbols. 2011-03-06 14:59:11 +00:00
Jonathan Puckey
22abd41aac Revert changes to BouncingBalls example. 2011-03-06 15:52:38 +01:00
Jonathan Puckey
78e6633804 Add missing BlendMode dependency to examples. 2011-03-06 15:47:55 +01:00
Jonathan Puckey
4cda395ab3 Add Rotation Raster to Examples. 2011-03-06 15:11:18 +01:00
Jonathan Puckey
0faab51a9f Add missing CanvasProvider.js dependency to Examples. 2011-03-06 15:10:35 +01:00
Jonathan Puckey
a6fdaf85d8 Add Raster example. 2011-03-06 13:08:24 +01:00
Jürg Lehni
1607d744ef Implicitely call document.redraw() at the end of PaperScript execution. 2011-03-05 22:02:53 +00:00
Jürg Lehni
95e39bcf30 Set a strokeColor, as the default seems to be invisible? 2011-03-05 00:02:46 +00:00
Jürg Lehni
3e4c49cb44 Make sure Events.js gets loaded in all examples. 2011-03-05 00:02:25 +00:00
Jürg Lehni
20f3460222 Update BezierTool to work wtihout full Bootstrap. 2011-03-04 23:33:48 +00:00
Jürg Lehni
551b28e27c Update tool scripts to load Events object. 2011-03-04 23:33:16 +00:00
Jonathan Puckey
bb5bfe1fb1 Examples: change mouse handlers to PaperScript. 2011-03-04 12:44:02 +01:00
Jonathan Puckey
e1a6c4f3d0 Update examples to PaperScript. 2011-03-04 12:38:38 +01:00
Jürg Lehni
7bc56d4c39 Convert MultiLines examples to PaperScript. 2011-03-04 01:05:41 +00:00
Jürg Lehni
7e52355f93 Rename Doc -> Document since paper code is namespaced now and does not clash with global Document prototype. 2011-03-03 17:23:27 +00:00
Jürg Lehni
a543801598 Rename Bootstrap.js file to lowercase bootstrap.js. 2011-03-03 16:56:31 +00:00
Jürg Lehni
e9881c02fc Merge remote-tracking branch 'origin/master' 2011-03-03 16:33:01 +00:00
Jürg Lehni
d088dc629e Rename Paper to paper, implement it as an object literal and add paper.populate() and paper.install() methods that do the bootstraping. 2011-03-03 16:21:17 +00:00
Jonathan Puckey
02943c4190 Add missing CanvasProvider.js dependency to Examples. 2011-03-03 17:04:14 +01:00
Jürg Lehni
07fcc000cf Move the new refactored CanvasDraw functionality to static Item.draw() and #draw() instance methods on each prototype. 2011-03-03 12:19:43 +00:00
Jonathan Puckey
acf06937f5 BouncingBalls example: remove line which was committed by accident. 2011-03-03 02:30:55 +01:00
Jonathan Puckey
83df699975 Update dependencies of examples. 2011-03-03 02:27:46 +01:00
Jürg Lehni
fd4b7b76ae Include DocumentView.js in all examples and tests. 2011-03-02 16:18:32 +00:00
Jonathan Puckey
b03ad9b090 Some small changes BezierTool example. 2011-02-27 17:42:30 +01:00
Jonathan Puckey
196f89d9a7 Examples: Add simple BezierTool example. 2011-02-27 17:16:42 +01:00
Jonathan Puckey
44aa9254ea Change BouncingBalls example to use event.delta for throwing balls. 2011-02-21 15:32:59 +01:00
Jürg Lehni
86a74ca0ef Update doc-type to HTML5. 2011-02-21 14:31:26 +01:00
Jonathan Puckey
e898f0482c Revert previous commit of BouncingBalls example. 2011-02-21 03:37:35 +01:00
Jonathan Puckey
357a8af6ec Clean up white spaces. 2011-02-21 03:32:39 +01:00
Jonathan Puckey
e772038727 Update examples. 2011-02-20 23:28:38 +01:00
Jonathan Puckey
a41a762237 Add example of radial gradients. 2011-02-19 22:52:27 +01:00
Jonathan Puckey
8d570d0834 Fix script paths in examples. 2011-02-19 17:56:15 +01:00
Jonathan Puckey
2e5a84b9ba Update examples to include Color dependencies. 2011-02-19 17:54:10 +01:00
Jonathan Puckey
deb1699f13 Tidy up code. 2011-02-17 16:00:03 +01:00
Jonathan Puckey
ab098ddca3 Add Path.Constructors.js to examples and tests. 2011-02-17 15:56:07 +01:00
Jonathan Puckey
66b9b28394 Add BouncingCircles.html example of Group#getBounds(). 2011-02-17 00:35:10 +01:00
Jonathan Puckey
52b69817a0 Clean up animatedStar.html example. 2011-02-16 22:44:05 +01:00
Jonathan Puckey
7e5cb1cc81 Examples: clean up scripts list and add PathStyle.js. 2011-02-16 22:35:17 +01:00
Jonathan Puckey
f92da1297b RoundedRectangles Example: use onMouseDrag for now. 2011-02-15 00:08:11 +01:00
Jonathan Puckey
4e0bf98035 Tools Examples: no need to set the document anymore. 2011-02-15 00:07:02 +01:00
Jonathan Puckey
4395caf41f Tool: add support for Tool#onMouseMove(event) and add RoundedRectangles example 2011-02-14 22:43:14 +01:00
Jürg Lehni
d33a2decab Examples: Close the letterPath. 2011-02-14 01:48:15 +00:00
Jürg Lehni
08d4826441 Reformating code to follow Scriptotgrapher coding conventions. 2011-02-13 16:26:24 +00:00
Jonathan Puckey
783244b393 Clean up strokeJoin example. 2011-02-12 19:12:56 +01:00
Jonathan Puckey
a81f1eb698 Examples: update Circles.html to create a new path on every mouse down. 2011-02-12 18:12:25 +01:00