Skip to content

Commit 111003e

Browse files
committed
Add servo logo example
1 parent 44cd4fd commit 111003e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/examples.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,26 @@ export default {
724724
}
725725
`),
726726

727+
'servo logo': read(`
728+
svg {
729+
viewBox: -50 -50 100 100 p 12;
730+
731+
--r: 50;
732+
--x: -2.4;
733+
--d: .618r;
734+
--y: 1.618x;
735+
736+
path*5 {
737+
transform-origin: $x $y;
738+
transform: translate($(-1x) $(-1y)) rotate(@n(*72));
739+
fill: @pn.Mirror(#1292e8,#009d9a,#42be65);
740+
d: M 0 $d 0 $r
741+
A $r $r 0 0 0 $(r*cos(π/10)) $(r*sin(π/10))
742+
L $(d*sin(π/2.5)) $(d*cos(π/2.5));
743+
}
744+
}
745+
`)
746+
727747
}
728748

729749
function read(input) {

0 commit comments

Comments
 (0)