Skip to content

Commit 7e03256

Browse files
committed
Add duotone yinyang
1 parent a3dfb08 commit 7e03256

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

contact.png

4.81 KB
Loading

contact.svg

Lines changed: 1 addition & 1 deletion
Loading

src/sheets/core.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,4 +1429,29 @@ sheet.glyphs.set("x", (canvas: SVGContainer) => {
14291429
return group;
14301430
});
14311431

1432+
sheet.glyphs.set("yinyang", (canvas: SVGContainer) => {
1433+
const symbol = canvas.symbol();
1434+
symbol.path("M53.2 10.8c11.7 11.7 11.7 30.7 0 42.4c-5.9 5.9-15.4 5.9-21.2 0S26.1 37.9 32 32c5.9-5.9 5.9-15.4 0-21.2s-15.4-5.9-21.2 0C22.5-.9 41.5-.9 53.2 10.8")
1435+
.fill("#fff")
1436+
.attr("data-playerfill", true);
1437+
symbol.path("M10.8 53.2C-.9 41.5-.9 22.5 10.8 10.8c5.9-5.9 15.4-5.9 21.2 0c5.9 5.9 5.9 15.4 0 21.2s-5.9 15.4 0 21.2s15.4 5.9 21.2 0c-11.7 11.7-30.7 11.7-42.4 0")
1438+
.fill("#000")
1439+
.attr("data-playerfill2", true);
1440+
symbol.circle(5.6)
1441+
.center(42.6, 42.6)
1442+
.fill("#000")
1443+
.attr("data-playerfill2", true);
1444+
symbol.circle(5.6)
1445+
.center(21.4, 21.4)
1446+
.fill("#fff")
1447+
.attr("data-playerfill", true);
1448+
symbol.circle(64)
1449+
.attr("data-context-border", true)
1450+
.fill("none")
1451+
.stroke({width: 5, color: "#000"})
1452+
.center(32, 32);
1453+
symbol.viewbox(-2.5, -2.5, 69, 69);
1454+
return symbol;
1455+
});
1456+
14321457
export { sheet as CoreSheet };

0 commit comments

Comments
 (0)