Skip to content

Commit

Permalink
refactor(examples): update hdom-canvas-shapes img demo
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Feb 27, 2019
1 parent bc59d30 commit 3774bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/hdom-canvas-shapes/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ const TESTS = {
(y > w) && (y = w - (y - w), v[1] *= -1);
p[0] = x;
p[1] = y;
return ["img", {}, [...p], img];
return ["img", {}, img, p.slice()];
};
};
const body = ["g", {}, ...repeatedly(ball, 1000)];
Expand Down

0 comments on commit 3774bfb

Please sign in to comment.