Jürg Lehni
5afa1b1688
Allow direct passing of color arguments to gradient constructors as well as arrays.
2013-03-01 17:44:16 -08: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
Jürg Lehni
779d076f02
Merge pull request #155 from ubershmekel/patch-1
...
Fixed memory leak
2013-02-14 12:47:56 -08:00
Jürg Lehni
1a438b8b9b
Change Curve#[getPoint / getTangent / getNormal](t) to #[getPoint / getTangent / getNormal](offset, isParamter).
...
Keep deprecated versions around for now.
2013-01-28 16:30:28 -08:00
Yuval Greenfield
27781d44ac
Fixed memory leak
...
The original technique isn't horrible when it happens
once per mouse move but if used once per frame it completely
destroys the browser.
To see the leak in the chrome task manager - furiously move the
mouse and see the top cpu process keep rising in memory usage.
2012-12-31 23:46:53 +02:00
Jonathan Puckey
1fd3d727d2
Fix Bouncing Balls example.
2012-11-22 21:08:17 +01:00
Jonathan Puckey
3bf473924a
Remove Scripts/Fitting.
...
Scripts/Resize demonstrates the same functionality.
2012-11-22 21:01:26 +01:00
Jürg Lehni
e9a9066d7f
Use group creation without explicit array declaration, as that's been supported all along.
2012-11-06 20:37:50 -08:00
Jonathan Puckey
3634e7b866
Add example demonstrating onResize and Item#fitBounds.
2012-03-01 14:30:14 +01:00
Jürg Lehni
597a59e90c
Increase font size.
2011-12-27 20:40:22 +01: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
Jonathan Puckey
7772bfc2c9
HSLColor example: change the background color to black.
2011-07-09 16:21:02 +02:00
Jonathan Puckey
984af9c93b
Use radial gradients in HSLColor example.
2011-07-09 16:19:15 +02:00
Jonathan Puckey
b667a04cb6
Improve and simplify HSLColor example.
2011-07-08 14:47:34 +02:00
Jürg Lehni
5655981f6d
Clean up white spaces.
2011-07-07 16:09:02 +02:00
Jürg Lehni
f357eb4a21
Merge pull request #20 from gka/hsl-color
...
added support for HSL colors
2011-07-06 14:37:19 -07:00
Jürg Lehni
b13c7622c8
Rename Curve#getParameter(length) -> Curve#getParameterAt(offset)
2011-07-06 23:13:38 +02:00
Jonathan Puckey
458b03ff43
Move Raster related examples to examples/Rasters
2011-07-05 18:28:21 +02:00
gka
0e37d9e93d
added support for HSL colors
...
new class HSLColor, new test script HSLColor.html
2011-07-05 15:38:32 +02:00
Jürg Lehni
189e15b1e8
Remove console logging.
2011-07-01 12:56:30 +02:00
Jürg Lehni
9fa51a0457
Implement Item#controlBounds and Path#controlBounds, and test it in StrokeBounds example. This is a first step towards fast hit-testing.
2011-07-01 12:51:18 +02:00
Jürg Lehni
93518c07dc
Merge branch 'master' of github.com:paperjs/paper.js
2011-07-01 11:04:53 +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
Jürg Lehni
0a719d909a
Merge pull request #15 from rdworth/example_strokebounds_semicolons
...
Example: Stroke Bounds: Added two missing semicolons, example is broken w
2011-07-01 01:56:59 -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
7085eeae51
Example: Stroke Bounds: Added two missing semicolons, example is broken without them.
2011-06-30 21:04:16 -04:00
Richard D. Worth
b47d988fb3
Examples: Renamed a few html files to correct one typo and fix inconsistency with spaces in filenames
2011-06-30 10:07:05 -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
3ddf2b40ca
Clean up PathStructure example.
2011-06-30 10:49:54 +02:00
Richard D. Worth
1ab78ba594
Examples: Path Structure: refactored to handle resize as well as to display label for first point (number 0 as text content is falsy)
2011-06-29 16:12:51 -04:00
Jonathan Puckey
a26a292783
Don't use keepAlive option in examples.
2011-06-29 13:44:06 +02:00
Jonathan Puckey
b7ba11c9b8
Cleanup StrokeBounds example.
2011-06-28 12:13:13 +02:00
Jürg Lehni
318ed69ad2
Remove use of characterStyle / paragraphStyle where not necessary.
2011-06-20 18:53:36 +01:00
Jonathan Puckey
a2a8939d5d
Path# rename #pointsToCurves to #simplify and #curvesToPoints to #flatten.
2011-06-20 19:17:07 +02:00
Jonathan Puckey
f6fbccb7a2
Examples: Convert Path#selected to Path#fullySelected where needed.
2011-06-20 17:16:27 +02:00
Jürg Lehni
ed5484e770
StrokeBounds example: Fix arcTo() direction.
2011-06-20 15:36:27 +01:00
Jonathan Puckey
c167920480
Examples: replace use of deprecated functions.
2011-06-19 17:37:43 +02:00
Jonathan Puckey
e77caf610b
Update BouncingBalls example to the version on Paperjs.org
2011-06-19 17:34:32 +02:00
Jonathan Puckey
26f326e32d
Add Fitting example to scripts.
2011-06-19 16:45:29 +02:00
Jonathan Puckey
57e23950c2
Change image used in DivisionRaster example.
2011-06-19 15:18:17 +02:00
Jonathan Puckey
fcb7a74610
Clean up DivisionRaster example.
2011-06-19 15:01:53 +02:00
Jonathan Puckey
faf9b453d1
Clean up the PhyllotaxisRaster example and use Item#fitBounds instead of stretching the image.
2011-06-19 03:43:47 +02:00
Jonathan Puckey
a0dbf3eb45
Add DivisionRaster example.
2011-06-19 03:32:07 +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
Jürg Lehni
25541b6c6c
Add a switch to CurveTimeParametrization example that allows the use of #curvesToPoints() instead of #getParameter().
2011-06-05 13:22:06 +01:00
Jonathan Puckey
43f92dd70a
Examples: close html tag.
2011-05-31 00:27:39 +02:00
Jürg Lehni
b52abbfbc1
Replace removed 'hidden' property with 'visible'.
2011-05-19 21:55:51 +01:00
Jonathan Puckey
a7fc55c998
Small update to Phyllotaxis Raster.
2011-05-19 18:42:03 +02:00
Jonathan Puckey
958c19c572
Update Chain example.
2011-05-19 17:15:42 +02:00
Jonathan Puckey
1e18c38d35
Optimize the PhyllotaxisRaster example and use an image of a sunflower.
2011-05-19 17:00:08 +02:00
Jonathan Puckey
7e85c06b13
Add Phyllotaxis Raster example to Scripts.
2011-05-18 16:03:25 +02:00
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
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
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
9b295ab649
Rework RotationRaster example.
2011-05-08 17:20:23 +01:00
Jonathan Puckey
822047cde0
Rework Bouncing Balls example.
2011-05-08 15:44:19 +01:00
Jürg Lehni
1e1a58e540
Correct case on example files.
2011-05-07 13:44:38 +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
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
077dc58222
Make all examples resize to the size of the browser window.
2011-05-05 16:25:17 +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
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
Jürg Lehni
5200434a07
Move lines.html to Animated folder.
2011-04-27 20:55:28 +01:00
Jonathan Puckey
8f3e6f44a7
Update lines example to use onFrame.
2011-04-26 15:51:56 +02:00
Jürg Lehni
7c51369426
Clean up Curve Time Parametrization example.
2011-04-26 12:31:35 +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
d8b933957a
Add Chain example.
2011-04-19 23:32:45 +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
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
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
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
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
0faab51a9f
Add missing CanvasProvider.js dependency to Examples.
2011-03-06 15:10:35 +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
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