Commit graph

193 commits

Author SHA1 Message Date
Jürg Lehni
6ed1d67ada Modernize Bootstrap.js, introduce Base.create() and use it instead of the Constructor.dont hack for object creation without the calling of initialize. 2012-11-03 21:49:37 -07:00
Jürg Lehni
30374ae3b4 Implement proper index independent argument list reading of basic types.
Implemented for Point, Size, Rectangle and Color.
2012-10-18 14:24:15 -07:00
Jürg Lehni
7329f4ef77 Improve handling of owner referencing in colors.
Allow one owner per Color only and clone colors when setting color styles. Gradient can still have multiple GradientColor owners. Closes #124.
2012-10-10 19:27:14 -07:00
Jürg Lehni
4d1920ee8b Improve Base.read() to support cloning of objects that are already provided in the required type. 2012-10-10 19:26:00 -07:00
Jürg Lehni
c51f2a0d3b Remove unnecessary variable declarations. 2012-09-30 19:50:30 -07:00
Jonathan Puckey
31b5a0647e Add change tracking to Gradient & GradientStop. 2012-03-04 19:14:13 +01:00
Jonathan Puckey
52385451f6 Resolve a few documentation todos. 2011-11-12 18:30:21 +01:00
Jürg Lehni
99a8532cca No need to set beans = true since we're always producing beans. 2011-11-11 14:03:36 +01:00
Jürg Lehni
e2eec3476d Add comments about backward compatible Color constructor names. 2011-11-10 20:00:20 +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
b51c1286da Add documentation for all color components. Closes #43. 2011-09-18 10:54:26 +02:00
Jonathan Puckey
38a4184ab5 Color: Avoid dividing by 0 in rgb-hsl converter. 2011-08-13 15:26:14 +02:00
Jürg Lehni
0e6aeac28c Fix HSLColor documentation. 2011-08-01 08:53:28 +01:00
Jürg Lehni
fc7da5fa13 Docs: Improve HSL example. 2011-07-31 15:46:26 +01:00
Jürg Lehni
6771475ffc Clean up comments. 2011-07-09 16:59:07 +02:00
Jürg Lehni
baf7136ef7 Compress HSL and HSB converters even more. 2011-07-07 00:19:13 +02:00
Jürg Lehni
adff506751 Rearrange converter sequence. 2011-07-07 00:19:01 +02:00
Jürg Lehni
41e25dc5f7 Remove converters that simply pass through other rgb converters and have Color#convert() handle that for us. 2011-07-07 00:02:38 +02:00
Jürg Lehni
16c31fc683 No need to initialize with 0 since we're always setting them again. 2011-07-06 23:54:34 +02:00
Jürg Lehni
769ae05ad8 Clean up HSB code a bit too. 2011-07-06 23:51:46 +02:00
Jürg Lehni
dfef99aa92 Clean up and further simplify HSL code. 2011-07-06 23:51:30 +02:00
gka
e1a61e1d95 added link to original algorithm source 2011-07-06 14:35:12 +02:00
gka
46483ee431 packed hsl-rgb conversion code a bit 2011-07-05 20:25:35 +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
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
266c78f4eb Add a bit more documentation to the Color owner stuff. 2011-06-20 17:00:11 +01:00
Jürg Lehni
08571fd399 Add comments. 2011-06-20 00:03:15 +01:00
Jürg Lehni
3a232b305e Implement _changed() mechanism in Color, by having Colors know which items they are defining styles for, through an internal _owners list. 2011-06-20 00:00:02 +01:00
Jürg Lehni
bf627d9d9c Remove all beans: true settings. 2011-06-19 18:54:41 +01:00
Jürg Lehni
3226147e00 Use a version of Bootstrap that always produces beans and remove all beans: true instructions. 2011-06-17 18:42:29 +01:00
Jürg Lehni
2ec34512d1 Ignore all documentation that caused warnings about leakage. 2011-06-14 23:02:34 +01:00
Jürg Lehni
401c4d5dc4 Rearrange @constructor documentation sequence. 2011-06-14 23:01:35 +01:00
Jürg Lehni
ffa79f4fd1 Clean up white spaces in comments. 2011-06-14 22:59:45 +01:00
Jonathan Puckey
e23ac6809b Color docs: add class introduction and examples. 2011-06-13 17:13:23 +02:00
Jonathan Puckey
68193d8a98 Documentation: Add examples to RGBColor / GrayColor / HSBColor constructors. 2011-06-10 14:12:33 +02:00
Jonathan Puckey
1bca7f4795 Adjust GradientColor example. 2011-06-09 23:27:11 +02:00
Jonathan Puckey
a880396d26 Add example code to GradientColor & GradientStop. 2011-06-09 23:21:06 +02:00
Jonathan Puckey
a96b272f7a Documentation edits. 2011-06-04 15:50:29 +02:00
Jürg Lehni
a1cbd53e23 Use modulo again in hsb conversion. 2011-06-02 15:33:46 +01:00
Jürg Lehni
9be8c154b7 Clean up code. 2011-06-02 09:34:10 +01:00
Jürg Lehni
1c886c125c Make HSB converters private again in Color, and shorten code. 2011-06-02 09:34:02 +01:00
Jürg Lehni
0e3ed65206 Go back to old luminescence values since the new ones produces to large values occasionally. 2011-06-02 09:05:23 +01:00
Jürg Lehni
a1d3b1a167 Rename and shorten RGB/HSB converters. 2011-06-02 00:19:00 +01:00
Jürg Lehni
3a310f19cc Directly access inner property. 2011-06-02 00:16:28 +01:00
Jürg Lehni
7dbda50431 Use more precise values for luminescence calculation. 2011-06-02 00:15:32 +01:00
Jürg Lehni
6558574980 Clean up code. 2011-06-01 20:23:20 +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