Commit graph

1768 commits

Author SHA1 Message Date
Jürg Lehni
f7bdfc5019 Clean up comments. 2011-06-01 20:32:37 +01:00
Jürg Lehni
6558574980 Clean up code. 2011-06-01 20:23:20 +01:00
Jürg Lehni
7de0859a85 Clean up comments. 2011-06-01 20:21:41 +01:00
Jürg Lehni
d5952ba043 Implement HSB blend modes. 2011-06-01 20:21:25 +01:00
Jürg Lehni
ad8f046880 Expose HSB converters since they are required in BlendMode 2011-06-01 20:21:08 +01:00
Jürg Lehni
05a01604ca Shorten css code. 2011-06-01 20:20:50 +01:00
Jürg Lehni
09e9298bf4 Fix blend modes to work correctly with alpha channels. 2011-06-01 19:25:43 +01:00
Jonathan Puckey
884446f606 Merge remote branch 'origin/master' 2011-06-01 19:49:57 +02:00
Jonathan Puckey
4af970ed79 jsdoc template: general clean up and implement exporting of packages.js. 2011-06-01 19:49:50 +02:00
Jonathan Puckey
0c6a91a789 jsdoc: remove comments that Rhino bugs out on. 2011-06-01 19:46:39 +02:00
Jonathan Puckey
33ad03af5d jsdoc: Update Rhino. 2011-06-01 19:46:11 +02:00
Jürg Lehni
0d1fcfbb81 Remove unused blend mode 'normal'. 2011-06-01 17:21:14 +01:00
Jürg Lehni
f58aa2a23b Add comment about overlay mode being the reverse of hard-light. 2011-06-01 17:11:06 +01:00
Jürg Lehni
3850e4a53b Optimise code for normal and multiply blend modes by precalculating values. 2011-06-01 17:10:40 +01:00
Jürg Lehni
8bbb3744fe Use min() / max() in darken / lighten for shorter code. 2011-06-01 17:09:32 +01:00
Jürg Lehni
b08abcdd69 Remove 'unsupported' blend mode. 2011-06-01 16:50:14 +01:00
Jürg Lehni
9142c974c3 Revert to longer version of blend mode code as it is faster. 2011-06-01 16:49:48 +01:00
Jürg Lehni
62f5204810 Shorten variable names. 2011-06-01 16:45:42 +01:00
Jürg Lehni
44605433d1 Further shorten and simplify BlendMode cide by having process() only process one pixel value at a time. 2011-06-01 16:34:57 +01:00
Jürg Lehni
9fa193d26f Move opacity precalculation out of variable definition. 2011-06-01 15:31:02 +01:00
Jürg Lehni
117a828b2b Don't set dst[i + 3] directly, set dA2 instead. 2011-06-01 14:01:46 +01:00
Jürg Lehni
acecb1a2c1 Clean up variable names. 2011-06-01 14:01:22 +01:00
Jürg Lehni
b9739aa26a Optimise blend mode loop by pre-calculating divisions. 2011-06-01 14:00:50 +01:00
Jürg Lehni
4a9f0d726f Pre-calculate opacity value. 2011-06-01 14:00:02 +01:00
Jürg Lehni
a1d996df05 Clean up formating. 2011-06-01 13:42:34 +01:00
Jürg Lehni
69e989f834 No need to set dst[i + 3] again after changing dA2, since we are now only setting it after calling process() from the main loop. 2011-06-01 13:42:22 +01:00
Jürg Lehni
c47d281308 Speed up blend-modes by using a lookup table for process functions rather than a switch() statement for each pixel. 2011-06-01 13:37:36 +01:00
Jonathan Puckey
c1d4161782 Merge remote branch 'origin/master' 2011-06-01 12:19:30 +02:00
Jonathan Puckey
3274102dec More jsdoc work, including exporting of templatedocs. 2011-06-01 12:19:15 +02:00
Jürg Lehni
29967153c3 Clean up TODO comments... 2011-06-01 10:49:43 +01:00
Jürg Lehni
2a5f885f50 "for var in" is good practise in such a case, as we don't need additional functionality of Base.each(). 2011-06-01 09:57:18 +01:00
Jonathan Puckey
5dd5694e3b Merge branch 'master' of github.com:scriptographer/paper.js 2011-06-01 10:56:16 +02:00
Jürg Lehni
ad335374cd Copyrights are included correctly in the paper.js file. 2011-05-31 22:22:07 +01:00
Jürg Lehni
ad2c7332de Move jsdoc creation to its own build script. 2011-05-31 22:17:13 +01:00
Jürg Lehni
90631b9dd0 Merge remote-tracking branch 'origin/master' 2011-05-31 22:16:27 +01:00
Jonathan Puckey
932527ee5c Improve Item's path style documentation. 2011-05-31 16:48:48 +02:00
Jonathan Puckey
048dda45d5 jsdoc template: clean up menu html. 2011-05-31 16:36:34 +02:00
Jonathan Puckey
bcc9d4efcd jsdoc template: use html5 doctype. 2011-05-31 16:36:04 +02:00
Jonathan Puckey
fddbb07ac1 jsdoc template: add copyright footer. 2011-05-31 16:29:37 +02:00
Jonathan Puckey
7087b5476d Clean up Matrix#setToRotation. 2011-05-31 16:19:43 +02:00
Jonathan Puckey
d2827e35c6 Documentation: clean up Size example code. 2011-05-31 16:18:59 +02:00
Jonathan Puckey
c39d092ee4 Documentation: Clean up Point example code. 2011-05-31 16:16:15 +02:00
Jonathan Puckey
97c8a7cb83 Clean up Line#getSide. 2011-05-31 16:13:42 +02:00
Jonathan Puckey
7a4c44ec7b Matrix documentation. 2011-05-31 16:08:25 +02:00
Jonathan Puckey
41c7ae6a90 jsdoc template: cleanup publish.js a bit. 2011-05-31 15:26:33 +02:00
Jonathan Puckey
3d7ddb26bf jsdoc template: allow optional naming of symbols in the package list and name '_global_' -> 'global paper scope' 2011-05-31 15:25:21 +02:00
Jonathan Puckey
434268fbd1 Document the properties of PaperScope to be global. 2011-05-31 15:18:37 +02:00
Jonathan Puckey
2b8f1b71ec Documentation: use inline code tags for boolean and number values, 2011-05-31 14:28:42 +02:00
Jonathan Puckey
31bf3ffa70 Matrix: add param tags to #applyToContext documentation. 2011-05-31 14:25:24 +02:00
Jonathan Puckey
8b7d7b68e1 Size: fix typo in documentation. 2011-05-31 14:24:30 +02:00