Skip to content

Commit 7e64fbd

Browse files
committed
New examples
1 parent d03a213 commit 7e64fbd

File tree

2 files changed

+23
-16
lines changed

2 files changed

+23
-16
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2473,6 +2473,6 @@ <h2>Dedicated to people who <span><css-doodle use="var(--heart)"></css-doodle> C
24732473
</footer>
24742474
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.38.0/codemirror.min.js"></script>
24752475
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.38.0/mode/css/css.min.js"></script>
2476-
<script src="main.js?ef18a59ce3dcbb3c050ef8e92c46e677"></script>
2476+
<script src="main.js?18265d4d1d5da3a856f31915f063ee81"></script>
24772477
</body>
24782478
</html>

main.js

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,22 @@
188188
transform: rotate(@r(360deg));
189189
`),
190190
tiled: indent(`
191-
/* 10 PRINT */
192-
193-
@grid: 16 / 320px;
194-
195-
@size: 1px calc(141.4% + 1px);
196-
transform: rotate(@p(±45deg));
197-
background: #AEACFB;
198-
margin: auto;
191+
@grid: 1 / 90%;
192+
193+
@content: @svg(
194+
viewBox: 0 0 16 16 p 1;
195+
stroke: #aeacfb;
196+
stroke-width: .1;
197+
stroke-linecap: round;
198+
line*16x16 {
199+
draw: @r(2s);
200+
x1, y1, x2, y2: @p(
201+
@nx(-1) @ny(-1) @nx @ny,
202+
@nx @ny(-1) @nx(-1) @ny,
203+
@nx @ny(-1) @nx @ny
204+
);
205+
}
206+
);
199207
`),
200208
border: indent(`
201209
@grid: 14 / 80%;
@@ -219,17 +227,16 @@
219227
`),
220228

221229
bud: indent(`
222-
@grid: 1 / 70%;
230+
@grid: 1 / 70% auto;
223231
224232
background: radial-gradient(
225-
yellow, #E91F63, #fff
233+
pink, yellow, red, red
226234
);
227235
228-
clip-path: @shape(
229-
fill-rule: evenodd;
230-
split: 500;
231-
scale: .6;
232-
r: cos(7t)^2 + sin(7t) + .3;
236+
mask: @svg-polygon(
237+
split: 400;
238+
scale: .7;
239+
r: cos(7t)^4 + sin(7t) +.3;
233240
);
234241
`),
235242

0 commit comments

Comments
 (0)