Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanchuan committed Nov 29, 2023
1 parent 5734619 commit a9aa11f
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,17 @@ export default {
'patterns': read(`
svg {
viewBox: 0 0 1 1;
defs mask#circle {
circle {
r: 4.9;
fill: #fff;
}
}
rect*2 {
x, y: @pn(0, .049);
width, height: 100%;
width, height: @pn(1, .9);
fill: defs pattern {
width, height: 10%;
width, height: @pn(.1, .1114);
viewBox: -5 -5 10 10;
g {
circle*4 {
Expand All @@ -273,14 +279,9 @@ export default {
}
circle {
r: 1.2;
fill: @pn(#D01C3B, #E0D31C)
}
mask: defs mask {
circle {
r: 4.9;
fill: #fff;
}
fill: @pn(#D01C3B, #E0D31C);
}
mask: url(#circle);
}
}
}
Expand Down

0 comments on commit a9aa11f

Please sign in to comment.