Jürg Lehni
|
4c035ada36
|
Minor fixes in comments and tests.
|
2018-10-10 23:03:57 +02:00 |
|
Jürg Lehni
|
fd1a517e84
|
Improve hex Color parser
Addresses changes in #1469
|
2018-10-06 21:57:30 +02:00 |
|
PeterLazar
|
a8f78859cb
|
Add hexadecimal with alpha color parsing
Closes #1468
|
2018-10-05 20:14:20 +02:00 |
|
Jürg Lehni
|
47af603173
|
Support alpha channel in named CSS colors
Closes #1539
|
2018-10-04 17:26:48 +02:00 |
|
Jürg Lehni
|
da3a36230f
|
Color: Improve CSS string parser and docs
|
2018-10-03 15:56:15 +02:00 |
|
Jürg Lehni
|
5291043a5f
|
Fix how gradient matrices are handled when Item#applyMatrix = false
Closes #1238
|
2017-03-09 14:31:41 +01:00 |
|
Jürg Lehni
|
29768c8228
|
Take Color#alpha default into account in Color#equals()
Relates to #1084
|
2016-07-25 21:09:53 +02:00 |
|
Jürg Lehni
|
f19d0c8134
|
Rename GradientStop#rampPoint to #offset
|
2016-05-31 12:35:44 +02:00 |
|
Jürg Lehni
|
d93aca6b5c
|
Refactor GradientStop: Improve handling of optionally defined color and rampPoint.
Relates to https://github.com/paperjs/paper.js/issues/1001#issuecomment-197557990
|
2016-03-17 09:38:42 +01:00 |
|
Jürg Lehni
|
4c84c3dad5
|
Tests: Start getting QUnit tests to work on Node.js
Work in progress…
|
2016-01-31 12:43:20 +01:00 |
|
Jürg Lehni
|
a7a07fb6d5
|
Update JSDoc and do some documentation spring-cleaning.
- Convert from {@code ...} to shorter `...`
- Reformat some documentation comment blocks
- Update copyright notices
|
2015-12-30 21:55:19 +01:00 |
|
Jürg Lehni
|
d02f29e2f1
|
Remove legacy Color constructor tests.
|
2015-09-06 15:37:03 +02:00 |
|
Jürg Lehni
|
c5a2a51f3e
|
Implement unit test comparator for Color and improve new comparator code.
|
2014-12-28 15:21:38 +01:00 |
|
Jürg Lehni
|
318209e9e9
|
Replace compareNumbers() with equals() and improve numerical tolerance handling in test helpers.
|
2014-11-30 11:27:14 -08:00 |
|
Jürg Lehni
|
48cb05a181
|
Replace tabs with 4 white-spaces.
|
2014-08-16 19:24:54 +02:00 |
|
Jürg Lehni
|
0dddd897ab
|
Remove internal clamping of color values to facilitate proper mathematical calculations with colors.
Clamp only when producing CSS values. Closes #271.
|
2014-01-04 18:16:52 +01:00 |
|
Jürg Lehni
|
e22fa3a664
|
Update copyright notice.
|
2014-01-04 01:47:16 +01:00 |
|
Jürg Lehni
|
829e878243
|
Add failing test for creating colors from RGBA.
|
2013-11-24 00:02:13 +01:00 |
|
Jürg Lehni
|
29bdf49a0f
|
Fix tests for deprecated Color constructors.
|
2013-07-02 07:53:58 -07:00 |
|
Jürg Lehni
|
d369984196
|
Allow math operands larger than 1 when multiplying and dividing colors.
|
2013-06-28 07:59:33 -07:00 |
|
Jürg Lehni
|
2c578d0558
|
Start implementing math operators for Color.
|
2013-06-28 07:19:53 -07:00 |
|
Jürg Lehni
|
2770a80a00
|
Fix unit tests for CSS values after white-space removal.
|
2013-06-18 15:59:28 -07:00 |
|
Jürg Lehni
|
9977ec5c28
|
Rename #toCss() to #toCSS()
|
2013-06-12 14:04:59 -07:00 |
|
Jürg Lehni
|
6029f59494
|
More uppercase changes.
|
2013-04-23 07:29:30 -07:00 |
|
Jürg Lehni
|
4b24690207
|
Implement Shape#contains() and define unit tests for it.
|
2013-04-20 20:54:06 -07:00 |
|
Jürg Lehni
|
a03363a6d1
|
Define tests for deprecated Color constructors.
|
2013-04-08 20:57:17 -07:00 |
|
Jürg Lehni
|
ca1a395dbd
|
Invert Color#gray component.
|
2013-04-08 20:20:47 -07:00 |
|
Jürg Lehni
|
8292112ecd
|
More work on Color and testing.
|
2013-04-08 07:07:41 -07:00 |
|
Jürg Lehni
|
0aa6c66681
|
Start refactoring Color tests.
|
2013-04-08 00:19:47 -07:00 |
|
Jürg Lehni
|
232ea221b4
|
First batch of large Color refactoring and simplification.
Work in progress.
|
2013-04-07 10:03:51 -07:00 |
|
Jürg Lehni
|
6c9c16ad3d
|
Update copyright information comments, and year.
|
2013-01-28 18:03:27 -08:00 |
|
Jürg Lehni
|
f268c6e152
|
Rename Color#toCssString() to #toCss(), and only include alpha if its < 1.
|
2012-12-01 12:31:22 -08: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
|
adb5bfb560
|
Add failing test.
|
2011-08-13 15:25:29 +02:00 |
|
Jürg Lehni
|
5655981f6d
|
Clean up white spaces.
|
2011-07-07 16:09:02 +02:00 |
|
Jürg Lehni
|
79c0ad8cc5
|
Update copyright notices.
|
2011-07-01 12:17:45 +02:00 |
|
Jonathan Puckey
|
473804ad60
|
Punctuation.
|
2011-05-21 21:02:06 +02:00 |
|
Jonathan Puckey
|
74ddc9e7d1
|
Add failing test for Color#convert.
|
2011-05-21 17:25:05 +02:00 |
|
Jonathan Puckey
|
1cdaa3a86b
|
Add failing Color cloning tests.
|
2011-05-21 13:34:27 +02:00 |
|
Jonathan Puckey
|
2c36f3a62e
|
Fix bug in Color#read.
|
2011-05-15 14:11:35 +02:00 |
|
Jürg Lehni
|
2a24ec66ac
|
Have test() method automatically create and remove a Document for reach test.
|
2011-05-14 18:59:04 +01:00 |
|
Jonathan Puckey
|
60c8c6ce02
|
Add more color tests.
|
2011-03-09 02:25:50 +01:00 |
|
Jürg Lehni
|
cbe29fd02b
|
Rename Color#getCssString() to #toCssString(), to go with #toString().
|
2011-03-03 17:36:53 +00:00 |
|
Jürg Lehni
|
7e52355f93
|
Rename Doc -> Document since paper code is namespaced now and does not clash with global Document prototype.
|
2011-03-03 17:23:27 +00:00 |
|
Jonathan Puckey
|
083822ff9d
|
Add test for RGBColor#setGray.
|
2011-02-24 13:00:46 +01:00 |
|
Jonathan Puckey
|
afceb19641
|
Add Color tests.
|
2011-02-19 17:11:17 +01:00 |
|
Jonathan Puckey
|
66105dd4ac
|
Implement Color, RGBColor & GrayColor.
|
2011-02-19 17:05:39 +01:00 |
|