mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Add test for RGBColor#setGray.
This commit is contained in:
parent
73df06150a
commit
083822ff9d
1 changed files with 7 additions and 1 deletions
|
@ -68,5 +68,11 @@ test('Converting Colors', function() {
|
|||
|
||||
var color = new GrayColor(0.2);
|
||||
var rgbColor = new RGBColor(color);
|
||||
compareRGBColors(rgbColor, [ 0.8, 0.8, 0.8, 1 ]);
|
||||
compareRGBColors(rgbColor, [ 0.8, 0.8, 0.8, 1]);
|
||||
});
|
||||
|
||||
test('Setting RGBColor#gray', function() {
|
||||
var color = new RGBColor(1, 0.5, 0.2);
|
||||
color.gray = 0.1;
|
||||
compareRGBColors(color, [ 0.9, 0.9, 0.9, 1]);
|
||||
});
|
Loading…
Reference in a new issue