mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
Remove internal clamping of color values to facilitate proper mathematical calculations with colors.
Clamp only when producing CSS values. Closes #271.
This commit is contained in:
parent
bb77da22a8
commit
0dddd897ab
4 changed files with 45 additions and 63 deletions
|
@ -19,7 +19,7 @@ test('PointText', function() {
|
|||
point: [100, 100],
|
||||
content: 'Hello World!'
|
||||
});
|
||||
equals(text.fillColor, { red: 0, green: 0, blue: 0 }, 'text.fillColor should be black by default');
|
||||
compareColors(text.fillColor, new Color(0, 0, 0), 'text.fillColor should be black by default');
|
||||
comparePoints(text.point, { x: 100, y: 100 });
|
||||
compareRectangles(text.bounds, { x: 100, y: 87.4, width: 77, height: 16.8 });
|
||||
equals(function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue