mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Rework pixel storage, manipulation, rendering
This commit is contained in:

committed by
Julian Descottes

parent
06abdca62e
commit
f5c98cf0b3
@ -18,9 +18,9 @@ describe("Canvas Renderer test", function() {
|
||||
|
||||
var frameFromCanvas = pskl.utils.FrameUtils.createFromImage(canvas);
|
||||
|
||||
expect(frameFromCanvas.getPixel(0,0)).toBe(BLACK);
|
||||
expect(frameFromCanvas.getPixel(0,1)).toBe(WHITE);
|
||||
expect(frameFromCanvas.getPixel(1,0)).toBe(WHITE);
|
||||
expect(frameFromCanvas.getPixel(1,1)).toBe(BLACK);
|
||||
test.testutils.colorEqualsColor(frameFromCanvas.getPixel(0,0), BLACK);
|
||||
test.testutils.colorEqualsColor(frameFromCanvas.getPixel(0,1), WHITE);
|
||||
test.testutils.colorEqualsColor(frameFromCanvas.getPixel(1,0), WHITE);
|
||||
test.testutils.colorEqualsColor(frameFromCanvas.getPixel(1,1), BLACK);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user