Jürg Lehni
|
79c0ad8cc5
|
Update copyright notices.
|
2011-07-01 12:17:45 +02:00 |
|
Richard D. Worth
|
ac39873693
|
Whitespace. Removed all trailing whitespace from .js files
|
2011-06-30 06:01:51 -04:00 |
|
Jürg Lehni
|
7cd749e63d
|
Change all documentation to new convention of defining @class outside injection scope, fix some comments and a few errors with examples.
|
2011-06-22 23:56:05 +01:00 |
|
Jürg Lehni
|
d5e7ca9f5e
|
Improve explanatory comments.
|
2011-06-06 11:44:15 +01:00 |
|
Jürg Lehni
|
702269675a
|
Start adding support for rhino-canvas on server.
|
2011-06-03 14:05:55 +01:00 |
|
Jürg Lehni
|
4a51ff4215
|
Remove unneeded blend mode.
|
2011-06-02 14:33:42 +01:00 |
|
Jürg Lehni
|
c07fee0e6b
|
Shorten variable names.
|
2011-06-02 09:38:13 +01:00 |
|
Jürg Lehni
|
bb11b74fa3
|
Clean up comments: No need for reference to Context Blender, since code has completely changed.
|
2011-06-02 09:36:49 +01:00 |
|
Jürg Lehni
|
b02b4bf7a3
|
Implement HSL blend modes according to PDF specs.
|
2011-06-02 09:33:41 +01:00 |
|
Jürg Lehni
|
5e7998d803
|
Rename parameter.
|
2011-06-01 20:34:35 +01:00 |
|
Jürg Lehni
|
f7bdfc5019
|
Clean up comments.
|
2011-06-01 20:32:37 +01:00 |
|
Jürg Lehni
|
d5952ba043
|
Implement HSB blend modes.
|
2011-06-01 20:21:25 +01:00 |
|
Jürg Lehni
|
09e9298bf4
|
Fix blend modes to work correctly with alpha channels.
|
2011-06-01 19:25:43 +01: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 |
|
Jürg Lehni
|
29967153c3
|
Clean up TODO comments...
|
2011-06-01 10:49:43 +01:00 |
|
Jürg Lehni
|
01fdeb270b
|
Move PaperScript.js to core.
|
2011-05-14 17:22:49 +01:00 |
|
Jürg Lehni
|
0356fdb3b6
|
Add PaperScope switching to onFrame handler.
|
2011-05-14 16:00:30 +01:00 |
|
Jürg Lehni
|
518803f492
|
Add support for switching PaperScope contexts in PaperScript code exeuction and callback handling. This should add proper support for multiple PaperScript instances in one site.
|
2011-05-14 14:15:31 +03:00 |
|
Jonathan Puckey
|
bd932a9242
|
Implement onFrame event.delta & event.time.
|
2011-05-11 22:46:08 +02:00 |
|
Jonathan Puckey
|
ccf5dd70f6
|
PaperScript: call the onFrame handler straight away.
|
2011-05-08 18:44:33 +01:00 |
|
Jürg Lehni
|
7034f8241b
|
Remove deprecated onOptions.
|
2011-05-08 14:09:55 +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 |
|
Jürg Lehni
|
c053fb977a
|
Export PaperScript object and its load function as paper.load.
|
2011-05-07 20:50:32 +01:00 |
|
Jürg Lehni
|
081a303de0
|
Make sure PaperScripts are not loaded more than once by setting the loaded attribute to true on them.
|
2011-05-07 20:50:12 +01:00 |
|
Jürg Lehni
|
450d277fb4
|
Avoid necessity of try-catch around code evaluation by declaring all local variables that we are looking for.
|
2011-05-07 15:38:14 +01:00 |
|
Jürg Lehni
|
819c1c098c
|
Clean up BlendMode code, and add comments about things not working yet.
|
2011-05-06 13:41:36 +01:00 |
|
Jürg Lehni
|
8a4fe7eb42
|
Tiny code simplification.
|
2011-05-06 13:29:21 +01:00 |
|
Jürg Lehni
|
3eb17f2953
|
Refrain from hacker style.
|
2011-05-04 15:20:42 +01:00 |
|
Jürg Lehni
|
e0edddd5f6
|
Clean up code ('){' -> ') {')).
|
2011-05-03 08:57:09 +01:00 |
|
Jürg Lehni
|
81461764a5
|
Add conditional code to CanvasProvider, with a TODO for implementing functionality for the server.
|
2011-04-28 08:48:50 +01:00 |
|
Jürg Lehni
|
cf79080682
|
Move browser related code to browser folder and use conditionals to not include them when producing paper.js for server.
|
2011-04-28 08:48:28 +01:00 |
|
Jürg Lehni
|
84d321bd56
|
Clean up comments.
|
2011-04-26 15:56:06 +01:00 |
|
Jürg Lehni
|
bdfe35d93a
|
Consistently name local context variables 'ctx', to save line size and acknowledge the fact that Canvas contexts have a funny API design.
|
2011-04-26 15:39:16 +01:00 |
|
Jürg Lehni
|
189182b77c
|
Rename loop function to frame.
|
2011-04-26 15:16:05 +01:00 |
|
Jürg Lehni
|
ba0c6dafea
|
Add paper.debug switch, set it to true by default when loading code through load.js and use it to ignore focus / blur events in Event.requestAnimationFrame() during development.
|
2011-04-26 12:48:46 +01:00 |
|