Commit graph

168 commits

Author SHA1 Message Date
Jonathan Puckey
458b03ff43 Move Raster related examples to examples/Rasters 2011-07-05 18:28:21 +02:00
Jürg Lehni
81dd35d3fb Merge pull request #11 from rdworth/examples_title
Examples: Added more descriptive titles to each example html page
2011-07-01 01:59:03 -07:00
Richard D. Worth
10e36f98ee Examples: Uncommented out doctype in a few example html files to avoid quirks mode 2011-06-30 21:20:09 -04:00
Richard D. Worth
45f8c7cd1a Examples: Added more descriptive titles to each example html page 2011-06-30 09:57:17 -04:00
Jonathan Puckey
7ee7895d57 Clean up Future Splash example a bit. 2011-06-30 14:01:18 +02:00
Jonathan Puckey
d8f54b1c9b Add FutureSplash example. 2011-06-30 13:55:35 +02:00
Jonathan Puckey
a26a292783 Don't use keepAlive option in examples. 2011-06-29 13:44:06 +02:00
Jonathan Puckey
c622d1419a Improve RadialRainbows example. 2011-06-29 13:30:04 +02:00
Jonathan Puckey
2010f1b8d5 Clean up Tadpoles example. 2011-06-28 12:20:29 +02:00
Jürg Lehni
8d2cee16c5 Flock Example: Rename to Tadpoles. 2011-06-24 19:47:13 +01:00
Jürg Lehni
b910d9ee61 Flock Example: Remove Stats. 2011-06-24 19:46:16 +01:00
Jonathan Puckey
52175da3e9 Improve RoundedRectangles example. 2011-06-21 20:10:23 +02:00
Jonathan Puckey
531e0bb203 Add Space example. 2011-06-21 14:54:29 +02:00
Jürg Lehni
909bb6310f Shorten RadialRainbows. 2011-06-20 22:54:45 +01:00
Jonathan Puckey
ac310ecc04 Fix RadialRainbows example. 2011-06-20 23:20:39 +02:00
Jürg Lehni
8fb97a973a Remove stats for now since it is not included in built library. 2011-06-20 18:36:03 +01:00
Jürg Lehni
322a427208 Flock: Use Symbol#place() instead. 2011-06-20 17:52:46 +01:00
Jürg Lehni
02408fc47e Flock example: Reuse prepared symbol definition. 2011-06-20 17:51:39 +01:00
Jürg Lehni
08313a7f64 Smoothing example: Select path fully. 2011-06-20 16:40:30 +01:00
Jürg Lehni
07d3cbb807 Remove dashes from Flock. 2011-06-20 15:32:53 +01:00
Jonathan Puckey
c167920480 Examples: replace use of deprecated functions. 2011-06-19 17:37:43 +02:00
Jürg Lehni
4d12cb87fc Switch from "out" folder for built library to "dist". 2011-06-12 19:03:18 +01:00
Jürg Lehni
5e4192198b Change all examples to load the latest compiled library from out/paper.js. 2011-06-12 18:42:12 +01:00
Jonathan Puckey
43f92dd70a Examples: close html tag. 2011-05-31 00:27:39 +02:00
christophknoth
87409c5268 </html> missing 2011-05-30 15:13:25 -07:00
Jonathan Puckey
9c9b498e4a Simplify Extruded example. 2011-05-19 17:16:19 +02:00
Jürg Lehni
e49b02b8c1 Just use layer.position to (re-)position all stars. 2011-05-18 21:32:34 +01:00
Jürg Lehni
378952666a Clean ups. 2011-05-16 13:42:23 +01:00
Jürg Lehni
cfe968d30e Rename Document -> Project, DocumentView -> ProjectView, paper.document -> paper.project and paper.documents -> paper.projects, to avoid name clashing with window.document. 2011-05-16 13:33:15 +01:00
Jürg Lehni
08c03192b6 Fix examples to use view.bounds/size/center instead of document.bounds/size. 2011-05-16 12:51:20 +01:00
Jürg Lehni
074e121f47 Switch to onResize event. Needs more work on view bounds to work nicely. 2011-05-16 01:30:09 +01:00
Jürg Lehni
cd7544c7c7 Switch examples to using event.count in onFrame(). 2011-05-15 18:12:56 +01:00
Jonathan Puckey
4ecf6d2715 Raster example: remove unnecessary document.redraw call. 2011-05-15 15:37:33 +02:00
Jürg Lehni
3078e74f27 Let's not use variable chaining in examples, for clearer code. 2011-05-15 11:36:10 +01:00
Jürg Lehni
3feb45addc Add keepalive attribute to canvas to tag that controls wether it animates in background in emulated requestAnimationFrame() function, and use it in all example files. 2011-05-14 13:04:02 +03:00
Jonathan Puckey
2fd1873b1a Update Raster example to use onFrame event.delta / event.time for raster transformations. 2011-05-11 23:02:36 +02:00
Jonathan Puckey
b7f28140e7 Rework Smoothing example. 2011-05-08 19:14:22 +01:00
Jürg Lehni
4d6ca5c8c6 Prevent default when handling space key. 2011-05-08 17:26:35 +01:00
Jürg Lehni
742c9da822 More work on key handling and rename KeyEvent#keyCode -> KeyEvent#key. 2011-05-08 15:16:41 +01:00
Jürg Lehni
b26caee702 Improve key event handling, work in progress. 2011-05-08 13:43:52 +01:00
Jürg Lehni
926fffee4a Rename Event -> DomEvent and Element -> DomElement, to be more specific and not clash with other classes, e.g. a future base class for ToolEvent and KeyEvent. 2011-05-08 10:16:11 +01:00
Jonathan Puckey
d2de9c29d7 RadialRainbows.html example: use onFrame instead of setInterval and fix a bug in the window resizing code. 2011-05-07 13:58:22 +01:00
Jürg Lehni
1e1a58e540 Correct case on example files. 2011-05-07 13:44:38 +01:00
Jürg Lehni
8f7deef61c Simplify code. 2011-05-06 00:19:24 +01:00
Jonathan Puckey
59a776f58d Examples: resize='true' -> resize. 2011-05-05 20:08:13 +01:00
Jonathan Puckey
49510f78fc Adjust examples to work nicely when the browser window is resized. 2011-05-05 18:40:10 +01:00
Jonathan Puckey
077dc58222 Make all examples resize to the size of the browser window. 2011-05-05 16:25:17 +01:00
Jonathan Puckey
ae699ff20f Flock example: use Element.getScrollBounds() to define Document#size, move css into the head and simplify the construction of heartPath. 2011-05-05 13:31:36 +01:00
Jonathan Puckey
24e817fd01 Flock example: smooth segments. 2011-05-04 18:36:44 +01:00
Jürg Lehni
52a73e86ce Clean up code (for() -> for ()). 2011-05-03 08:54:13 +01:00
Jonathan Puckey
511eef50f6 Flock example: move the onresize function to the top, and resize the document before creating the boids. 2011-04-28 21:23:30 +02:00
Jonathan Puckey
be7ccdbe17 Flock example: fix small bug. 2011-04-28 21:18:10 +02:00
Jonathan Puckey
c0febab6c1 Flock example: remove unused variable. 2011-04-28 21:16:05 +02:00
Jonathan Puckey
3751dd0a38 Small change to Flock example. 2011-04-28 21:13:51 +02:00
Jonathan Puckey
de466edc23 Flock example: space bar toggles selection state of items in the document. 2011-04-28 20:57:04 +02:00
Jonathan Puckey
1781b53b55 Flock example: resize the document whenever the browser window is resized. 2011-04-28 20:46:24 +02:00
Jürg Lehni
b5d1662b58 Shorten definition of heart shape. 2011-04-27 23:19:33 +01:00
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
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
520e540da7 Update Raster example to use onFrame. 2011-04-26 15:43:01 +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
Jürg Lehni
28c9254695 Rename onFrameLoop to onFrame. 2011-04-22 16:31:46 +01:00
Jonathan Puckey
357e6f2db8 Some more work on the Flock example. 2011-04-20 13:07:40 +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
d67953c1da RoundedRectangles: use onFrameLoop and other small changes. 2011-04-18 17:48:48 +02:00
Jonathan Puckey
277cf541de Small simplification in RadialRainbows example. 2011-04-07 17:05:25 +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
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
1ae89049ed Make the RadialRainbows example interaction smoother. 2011-03-09 17:08:20 +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
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
3e4c49cb44 Make sure Events.js gets loaded in all examples. 2011-03-05 00:02:25 +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
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
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