Commit graph

159 commits

Author SHA1 Message Date
Jonathan Puckey
06f738d4db Add PathStructure example to Scripts. 2011-05-16 15:26:07 +02: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
dff0c595f0 Add simple CompoundPath example. 2011-05-15 19:14:21 +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
Jonathan Puckey
5ddb8e22d3 Merge remote branch 'origin/master' 2011-05-08 17:33:42 +01:00
Jürg Lehni
4d6ca5c8c6 Prevent default when handling space key. 2011-05-08 17:26:35 +01:00
Jonathan Puckey
9b295ab649 Rework RotationRaster example. 2011-05-08 17:20:23 +01:00
Jonathan Puckey
b0e91c0173 Merge remote branch 'origin/master' 2011-05-08 16:47:32 +01:00
Jonathan Puckey
822047cde0 Rework Bouncing Balls example. 2011-05-08 15:44:19 +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
Jonathan Puckey
314619e0a3 Simplify Worm Farm example. 2011-05-06 17:38:01 +01:00
Jonathan Puckey
020ab4e8bb Some work on the Worm Farm example. 2011-05-06 17:11:46 +01:00
Jonathan Puckey
c05eb9bfde Rework the Clouds example a bit. 2011-05-06 15:54:36 +01:00
Jonathan Puckey
1587ac857d Simplify Circles example. 2011-05-06 15:51:26 +01:00
Jonathan Puckey
29863b852a BouncingBalls example: use onFrame for animation and simplify some things. 2011-05-06 15:34:27 +01:00
Jonathan Puckey
3dbd6bc91b Some simplifications to the roundRectangle example. 2011-05-06 15:03:21 +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
f5aa8d5925 Remove a few examples. 2011-05-05 18:54:38 +01:00
Jonathan Puckey
1311acea82 BezierTool: wrap explanation text in a paragraph tag. 2011-05-05 18:44:03 +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
Jürg Lehni
61a4464aae Remove uneeded sample. 2011-05-05 11:40:19 +01:00
Jürg Lehni
78ce0831e3 Remove console.log(). 2011-05-04 19:43:06 +01:00
Jonathan Puckey
24e817fd01 Flock example: smooth segments. 2011-05-04 18:36:44 +01:00
Jürg Lehni
e0edddd5f6 Clean up code ('){' -> ') {')). 2011-05-03 08:57:09 +01:00
Jürg Lehni
66465541c6 Clean up code (if() -> if ()). 2011-05-03 08:55:01 +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
e2bc249dd8 Add Stars example. 2011-04-26 16:46:36 +02:00