Skip to content

Commit

Permalink
Merge pull request #226 from nkint/patch-5
Browse files Browse the repository at this point in the history
docs(hdom-canvas): fix example with group
  • Loading branch information
postspectacular authored Jun 6, 2020
2 parents 8ae3a76 + 8d869e6 commit 99e09a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hdom-canvas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@ start(() => {
const t = Date.now() * 0.001;
return [canvas, { width: 100, height: 100 },
g.group(
{ translate: [50, 50], fill: "none" },
[
g.withAttribs(
g.asPolygon(g.circle(50), 6),
{ rotate: t % Math.PI, stroke: "red" }
),
g.star(25 + 25 * Math.sin(t), 6, [0.5, 1], { stroke: "blue" }),
],
{ translate: [50, 50], fill: "none" }
)
];
});
Expand Down

0 comments on commit 99e09a0

Please sign in to comment.