Skip to content

Commit

Permalink
mm
Browse files Browse the repository at this point in the history
  • Loading branch information
holtzy committed Oct 22, 2024
1 parent 2a6643b commit 32f052a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pages/course/svg/path-element.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export default function Home() {
happens.
</p>
<div className="full-bleed my-4 max-w-7xl mx-auto">
<CodeSandbox vizName="exercise/SvgCurveArc" />
<CodeSandbox vizName="SvgCurveArc" />
</div>
{/* -
-
Expand Down
6 changes: 4 additions & 2 deletions viz/SvgCurveArc/Graph.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
export const Graph = () => {
return (
<svg width={500} height={300}>
<path d="C 20 30, 40 50, 60 70" stroke="blue" />
<path d="A 130 130 0 0 1 170 170" stroke="red" />
<svg width={500} height={300}>
<path d="M 20 30 C 40 50, 60 70, 80 30" stroke="blue" fill="none" />
<path d="M 130 130 A 30 30 0 0 1 170 170" stroke="red" fill="none" />
</svg>
</svg>
);
};

0 comments on commit 32f052a

Please sign in to comment.