Commit graph

168 commits

Author SHA1 Message Date
Jürg Lehni
383e574368 Sync online examples back to repo, and some minor cleanups. 2016-06-14 17:22:54 +02:00
Jürg Lehni
bc2729683c Core: Renamed Symbol and PlacedSymbol classes and properties.
- Symbol -> SymbolDefinition
- PlacedSymbol -> SymbolItem
- Symbol#definition -> SymbolDefinition#item
- PlacedSymbol#symbol -> SymbolItem#definition
- Deprecate Project#symbols

Closes #770
2016-01-31 16:52:51 +01:00
Jürg Lehni
9f448a97ef Use the correct notation in the new smooth() calls. 2016-01-15 17:25:15 +01:00
Jürg Lehni
af799976d4 Explicitly use continuous smooth in a couple of examples. 2016-01-15 11:29:31 +01:00
Jürg Lehni
ec5e8ff51d Switch blendMode to 'lighter' in CandyCrash example.
Closes #453
2016-01-08 23:27:45 +01:00
Jürg Lehni
18c5a06f45 Fix colors in animated boolean operations demo. 2015-09-18 23:00:47 +02:00
Jürg Lehni
da53bfe5a0 Simplify boolean operations example code a bit. 2015-01-04 22:00:40 +01:00
Jürg Lehni
48cb05a181 Replace tabs with 4 white-spaces. 2014-08-16 19:24:54 +02:00
Jürg Lehni
07563fb694 BooleanOperations example: Make the ring using subtraction instead of creating a CompoundPath manually. 2014-04-29 20:50:55 +02:00
Jonathan Puckey
690514e2c9 More work on animated boolean operations example.
Allows for mouse interaction with shapes. Uses a ring shape instead of a circle to show of compound path intersections. Now performs path operations of both square on ring and ring on square.
2014-04-29 12:17:46 +02:00
Jonathan Puckey
083cd7a057 Add animated example of the different boolean path operations. 2014-04-28 20:23:45 +02:00
Jürg Lehni
fe064e9cc3 Switch from dist/paper.js to dist/paper-full.js and explain the different versions in the README.
Closes #422.
2014-04-06 13:44:19 +02:00
Jonathan Puckey
a4bfa981f4 Rename Wine Gums example to Candy Crash. 2014-03-13 18:10:38 +01:00
Jonathan Puckey
4751fc6dc8 WineGums example: rename function. 2014-03-13 13:35:40 +01:00
Jürg Lehni
3c257dcae0 Merge branch 'refs/heads/master' into apply-matrix 2014-03-13 00:54:05 +01:00
Jürg Lehni
5f00c02e67 Clean up white-space. 2014-03-12 13:16:50 +01:00
Jürg Lehni
3dd2d8e8ff WinGums: Some more code clean-up. 2014-03-12 10:55:19 +01:00
Jürg Lehni
46bd6c9b3f WineGum example: Untangle the offset calculation code a bit. 2014-03-12 10:51:09 +01:00
Jürg Lehni
e23948f90d WineGum example: Some more style changes. 2014-03-12 10:50:50 +01:00
Jürg Lehni
71f6d53c70 Some more simplifications and style changes. 2014-03-12 10:47:18 +01:00
Jürg Lehni
cd985d8fb3 Convert to cleaner OOP style. 2014-03-12 10:46:45 +01:00
Jürg Lehni
76c0f7dd12 Precalculate side points again for better performance. 2014-03-12 10:40:07 +01:00
Jonathan Puckey
fb005ee63a Optimise WineGums example. 2014-03-11 19:22:16 +01:00
Jonathan Puckey
c5ee8ffb73 Change title of WineGums example. 2014-03-11 19:09:32 +01:00
Jonathan Puckey
3b3f86ae2d Optimise WineGums example. 2014-03-11 19:08:19 +01:00
Jonathan Puckey
9d5e5632df Add WineGums example by kynd.info. 2014-03-11 19:06:30 +01:00
Jürg Lehni
80a725d08a Rename Item#transformContent to the more correct Item#applyMatrix 2014-03-02 16:04:17 +01:00
Jürg Lehni
3219b36c3d Some code cleanup in examples. 2014-03-01 22:52:20 +01:00
Jürg Lehni
7c5d377133 Improve Space examples. 2013-12-06 22:28:13 +01:00
Jürg Lehni
1f98d72c5b Switch HiDPI on by default.
Allow deactivation by setting the hidpi attribute to "off" on the canvas.
2013-11-06 15:32:08 +01:00
Jürg Lehni
4dcb0d66a9 Update most examples to HiDPI. 2013-11-06 12:53:50 +01:00
Jürg Lehni
f07f4ac977 Fix example titles. 2013-11-04 11:43:27 +01:00
Jürg Lehni
7f251b78e3 Switch to HTML5 meta charset tags. 2013-06-02 13:41:10 -07:00
Jürg Lehni
cebeb11301 Rename Json acronyms in API to JSON. 2013-04-23 07:13:51 -07:00
Jürg Lehni
1cbb303941 Add SpaceUsingShapes.html, as an example for Shape.Circle() 2013-04-21 09:00:53 -07:00
Jonathan Puckey
03d98ecc09 Improve Lines example by cleaning up the code and make it run a little less hot. 2013-03-10 23:38:27 +01:00
Jonathan Puckey
0c125149e1 Move Tadpoles example to Paperjs.org folder. 2013-03-02 21:14:28 +01:00
Jonathan Puckey
9260717bb8 Examples: move Smoothing example to Paperjs.org folder. 2013-03-02 20:59:27 +01:00
Jonathan Puckey
b124d23078 Move examples which are featured on paperjs.org website to Paperjs.org folder. 2013-03-02 20:54:52 +01:00
Jonathan Puckey
1346b7d4c0 Lines example: use new notation for creating paths. 2013-03-02 20:51:44 +01:00
Jonathan Puckey
676a207871 Update Tadpoles example to use Project#importJson. 2013-03-02 16:06:31 +01:00
Jonathan Puckey
945a7220ee Update Animated Star example. 2013-03-02 16:02:29 +01:00
Jonathan Puckey
2eafb73912 Update extruded example to use Project#importJson. 2013-03-02 15:58:38 +01:00
Jürg Lehni
58fad6ed72 Switch from Gradient#type to separate LinearGradient / RadialGradient classes.
But remain backward compatible through direct calls to Gradient constructor.
2013-03-01 17:39:36 -08:00
Jonathan Puckey
e1bb0a23e7 Fix RadialRainbows example.
The example stopped working, because we were changing values on another gradient colour object than the one used by the path: the color is cloned when passed to path.fillColor
2012-11-22 20:59:09 +01:00
Jonathan Puckey
d12c680be6 Fix bug in Tadpoles example.
Fixes a bug where the segments array of a path was being changed directly, which caused the bounds to not be updated.
2012-11-22 20:59:08 +01:00
Jürg Lehni
28642bd1c8 Rename Path.Oval() to Path.Ellipse(), and deprecate Path.Oval(). 2012-11-06 11:37:00 -08:00
Jonathan Puckey
d631288dc7 Fire resize event directly after evaluation, so we don't need to call onResize ourselves from PaperScript. 2011-11-12 16:31:22 +01:00
Jürg Lehni
42d0e722db Rename RGBColor -> RgbColor, to avoid clash with native constructor, and follow same naming convention for HsbColor and HslColor, but keep references to old names for PaperScript scopes for now. 2011-11-10 19:16:34 +01:00
Jürg Lehni
5655981f6d Clean up white spaces. 2011-07-07 16:09:02 +02:00