From 043fb5ed0a0674124fb7edbe69dc2f60242e311f Mon Sep 17 00:00:00 2001 From: Julia Ogris Date: Thu, 17 Oct 2024 11:35:26 +1100 Subject: [PATCH] labsite: Update SVG dimension Update SVG dimension in labs when generating from evy source files so that they render at a reasonable size on GitHub. --- Makefile | 2 +- .../lab/samples/forloops/img/10-lines.svg | 1 + .../lab/samples/forloops/img/20-lines.svg | 1 + frontend/lab/samples/forloops/img/4-lines.svg | 1 + .../lab/samples/forloops/img/50-lines.svg | 1 + frontend/lab/samples/forloops/img/bubble.svg | 1 + .../lab/samples/forloops/img/circle-cat.svg | 1 + .../samples/forloops/img/circle-outline.svg | 1 + .../lab/samples/forloops/img/circle-rand.svg | 1 + .../lab/samples/forloops/img/circle-wig.svg | 1 + frontend/lab/samples/forloops/img/lines.svg | 1 + frontend/lab/samples/forloops/img/zebra.svg | 1 + frontend/lab/samples/ifs/img/2-squares.svg | 1 + frontend/lab/samples/ifs/img/apartments.svg | 1 + frontend/lab/samples/ifs/img/bauhaus.svg | 1 + frontend/lab/samples/ifs/img/blue-pattern.svg | 1 + frontend/lab/samples/ifs/img/bwrect.svg | 1 + frontend/lab/samples/ifs/img/grass.svg | 1 + frontend/lab/samples/ifs/img/house.svg | 1 + frontend/lab/samples/ifs/img/mondrian.svg | 1 + frontend/lab/samples/ifs/img/monster.svg | 1 + frontend/lab/samples/ifs/img/perspective.svg | 1 + frontend/lab/samples/ifs/img/pulse-step-1.svg | 1 + frontend/lab/samples/ifs/img/pulse-step-2.svg | 1 + .../ifs/img/quarter-circle-triangle.svg | 3 ++- .../lab/samples/ifs/img/quarter-circle.png | Bin 0 -> 3861 bytes .../lab/samples/ifs/img/quarter-circle.svg | 2 +- .../lab/samples/ifs/img/quarter-circle6.svg | 13 +++++++++++++ frontend/lab/samples/ifs/img/randrect.svg | 1 + .../ifs/img/red-dot-two-squares-alpha.svg | 1 + .../samples/ifs/img/red-dot-two-squares.svg | 1 + .../lab/samples/ifs/img/red-green-squares.svg | 1 + frontend/lab/samples/ifs/img/stripes.svg | 1 + frontend/lab/samples/ifs/img/target-blue.svg | 1 + frontend/lab/samples/ifs/img/tetris.svg | 1 + frontend/lab/samples/ifs/img/warm-squares.svg | 1 + frontend/lab/samples/ifs/img/window.svg | 1 + frontend/lab/samples/ifs/pi.md | 2 +- frontend/lab/samples/ifs/rectangles.md | 18 +++++------------- .../lab/samples/intro/img/circles-anika.svg | 1 + .../samples/intro/img/circles-bottom-left.svg | 1 + .../intro/img/circles-bottom-right.svg | 1 + .../lab/samples/intro/img/circles-camh.svg | 1 + .../lab/samples/intro/img/circles-kathi.svg | 1 + .../lab/samples/intro/img/circles-mali.svg | 1 + .../samples/intro/img/circles-top-left.svg | 1 + .../samples/intro/img/circles-top-right.svg | 1 + .../lab/samples/intro/img/coords-30-60.svg | 1 + .../lab/samples/intro/img/move-6circles.svg | 1 + .../lab/samples/loops/img/gradient-line.svg | 1 + .../lab/samples/loops/img/gradient-thick.svg | 1 + frontend/lab/samples/loops/img/target.svg | 1 + 52 files changed, 68 insertions(+), 17 deletions(-) create mode 100644 frontend/lab/samples/ifs/img/quarter-circle.png create mode 100644 frontend/lab/samples/ifs/img/quarter-circle6.svg diff --git a/Makefile b/Makefile index 82f8b9ae..4be13934 100644 --- a/Makefile +++ b/Makefile @@ -202,7 +202,7 @@ FLAGS_frontend/lab/samples/ifs/img/grass.svg = --rand-seed=1 FLAGS_frontend/lab/samples/forloops/img/bubble.svg = --rand-seed=1 FLAGS_frontend/lab/samples/forloops/img/circle-rand.svg = --rand-seed=1 %.svg: %.evy | $(NODELIB) - go run . run --svg-out "$@" $(FLAGS_$@) "$<" + go run . run --svg-style "width: 200px; height: 200px" --svg-out "$@" $(FLAGS_$@) "$<" $(PRETTIER) --write "$@" %.htmlf: %.md | $(NODELIB) diff --git a/frontend/lab/samples/forloops/img/10-lines.svg b/frontend/lab/samples/forloops/img/10-lines.svg index 91815a4e..04130330 100644 --- a/frontend/lab/samples/forloops/img/10-lines.svg +++ b/frontend/lab/samples/forloops/img/10-lines.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/forloops/img/20-lines.svg b/frontend/lab/samples/forloops/img/20-lines.svg index 6b321237..f55781b2 100644 --- a/frontend/lab/samples/forloops/img/20-lines.svg +++ b/frontend/lab/samples/forloops/img/20-lines.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/forloops/img/4-lines.svg b/frontend/lab/samples/forloops/img/4-lines.svg index 879b9ddc..39d67a39 100644 --- a/frontend/lab/samples/forloops/img/4-lines.svg +++ b/frontend/lab/samples/forloops/img/4-lines.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/forloops/img/50-lines.svg b/frontend/lab/samples/forloops/img/50-lines.svg index afa55263..ba6ff91d 100644 --- a/frontend/lab/samples/forloops/img/50-lines.svg +++ b/frontend/lab/samples/forloops/img/50-lines.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/forloops/img/bubble.svg b/frontend/lab/samples/forloops/img/bubble.svg index fb14abc5..4e241feb 100644 --- a/frontend/lab/samples/forloops/img/bubble.svg +++ b/frontend/lab/samples/forloops/img/bubble.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/forloops/img/circle-cat.svg b/frontend/lab/samples/forloops/img/circle-cat.svg index e6d1a2e8..15ba7373 100644 --- a/frontend/lab/samples/forloops/img/circle-cat.svg +++ b/frontend/lab/samples/forloops/img/circle-cat.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/forloops/img/circle-outline.svg b/frontend/lab/samples/forloops/img/circle-outline.svg index 34a6d5b8..357fc1ea 100644 --- a/frontend/lab/samples/forloops/img/circle-outline.svg +++ b/frontend/lab/samples/forloops/img/circle-outline.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/forloops/img/circle-rand.svg b/frontend/lab/samples/forloops/img/circle-rand.svg index 479a99a7..bbaa7681 100644 --- a/frontend/lab/samples/forloops/img/circle-rand.svg +++ b/frontend/lab/samples/forloops/img/circle-rand.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/forloops/img/circle-wig.svg b/frontend/lab/samples/forloops/img/circle-wig.svg index ee4e0966..6b676b24 100644 --- a/frontend/lab/samples/forloops/img/circle-wig.svg +++ b/frontend/lab/samples/forloops/img/circle-wig.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/forloops/img/lines.svg b/frontend/lab/samples/forloops/img/lines.svg index 4b26d106..9422ccdf 100644 --- a/frontend/lab/samples/forloops/img/lines.svg +++ b/frontend/lab/samples/forloops/img/lines.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/forloops/img/zebra.svg b/frontend/lab/samples/forloops/img/zebra.svg index aacad438..24e50e0b 100644 --- a/frontend/lab/samples/forloops/img/zebra.svg +++ b/frontend/lab/samples/forloops/img/zebra.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/2-squares.svg b/frontend/lab/samples/ifs/img/2-squares.svg index 0cddd03d..e69cc5d5 100644 --- a/frontend/lab/samples/ifs/img/2-squares.svg +++ b/frontend/lab/samples/ifs/img/2-squares.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/apartments.svg b/frontend/lab/samples/ifs/img/apartments.svg index 65f67935..5fd39135 100644 --- a/frontend/lab/samples/ifs/img/apartments.svg +++ b/frontend/lab/samples/ifs/img/apartments.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/bauhaus.svg b/frontend/lab/samples/ifs/img/bauhaus.svg index a3e9f2b4..73aeee4a 100644 --- a/frontend/lab/samples/ifs/img/bauhaus.svg +++ b/frontend/lab/samples/ifs/img/bauhaus.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/blue-pattern.svg b/frontend/lab/samples/ifs/img/blue-pattern.svg index 4f6b3182..9c9eb4ff 100644 --- a/frontend/lab/samples/ifs/img/blue-pattern.svg +++ b/frontend/lab/samples/ifs/img/blue-pattern.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/bwrect.svg b/frontend/lab/samples/ifs/img/bwrect.svg index 88eaf77d..82c0b9cd 100644 --- a/frontend/lab/samples/ifs/img/bwrect.svg +++ b/frontend/lab/samples/ifs/img/bwrect.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/grass.svg b/frontend/lab/samples/ifs/img/grass.svg index eab13807..5847206e 100644 --- a/frontend/lab/samples/ifs/img/grass.svg +++ b/frontend/lab/samples/ifs/img/grass.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/house.svg b/frontend/lab/samples/ifs/img/house.svg index f4209ed3..bb293b24 100644 --- a/frontend/lab/samples/ifs/img/house.svg +++ b/frontend/lab/samples/ifs/img/house.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/mondrian.svg b/frontend/lab/samples/ifs/img/mondrian.svg index 432c76ff..3d11c7fb 100644 --- a/frontend/lab/samples/ifs/img/mondrian.svg +++ b/frontend/lab/samples/ifs/img/mondrian.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/monster.svg b/frontend/lab/samples/ifs/img/monster.svg index 880aebd2..e14fe2e4 100644 --- a/frontend/lab/samples/ifs/img/monster.svg +++ b/frontend/lab/samples/ifs/img/monster.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/perspective.svg b/frontend/lab/samples/ifs/img/perspective.svg index 6065e00f..f8c92d84 100644 --- a/frontend/lab/samples/ifs/img/perspective.svg +++ b/frontend/lab/samples/ifs/img/perspective.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/pulse-step-1.svg b/frontend/lab/samples/ifs/img/pulse-step-1.svg index 901b781b..fded51b0 100644 --- a/frontend/lab/samples/ifs/img/pulse-step-1.svg +++ b/frontend/lab/samples/ifs/img/pulse-step-1.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/pulse-step-2.svg b/frontend/lab/samples/ifs/img/pulse-step-2.svg index 2d041418..40215c26 100644 --- a/frontend/lab/samples/ifs/img/pulse-step-2.svg +++ b/frontend/lab/samples/ifs/img/pulse-step-2.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/quarter-circle-triangle.svg b/frontend/lab/samples/ifs/img/quarter-circle-triangle.svg index 9d9fc466..ffeaf830 100644 --- a/frontend/lab/samples/ifs/img/quarter-circle-triangle.svg +++ b/frontend/lab/samples/ifs/img/quarter-circle-triangle.svg @@ -2,7 +2,8 @@ stroke="black" stroke-linecap="round" font-size="60" - viewBox="0 0 1000 1000" + viewBox="0 0 200px 200px" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/quarter-circle.png b/frontend/lab/samples/ifs/img/quarter-circle.png new file mode 100644 index 0000000000000000000000000000000000000000..5f78c11a23055ee67f8a50b9899e7f818684c210 GIT binary patch literal 3861 zcmXw63p|tSAAc-zt&}1~Ek`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-nPn z=!u$dc^4tprhlXpq5Yd1W2RhUffC)W+|5o@wf;+>R9Xemiu!Ic=EEsrr|!Pzb=w>P z>aN0Mx{u_3w@5~9KQdI399+vOKt65Cmtpn$GdQSMB6pec<%kGhZn1FCUA1zWc$&D_ zCI`lGf7ymN*w5>?HeH7$MxzI{`E~1pMx`>x^`d<}6xFa3^LkZH*QF5Pd03r>{Rv8a ztbb7Q3fKT?w}T|@Eelz@=ZLcO;&LpD_azwZmUhF!rPaUjxy25244Rbrv6B6!tZ#5} z;PsFt%$?pOFOi|Za}v#0LYhye4duz=?C;#2GF92Z-Qu?^#~XZMxu2tXl+f1lqR|Bz zyoQ#*)r@tQI_D2vabE50PSh&?rP-Y{&1O+b;w)i4)9x4vdt=HE)XaUHhTuVWeQ6St zM`ey*lV#oZdYJPnkr;`M>4E~*q86T6ff zyJWP*vs!dv7k-rVOUDi+*|6(mL9jzl8)R_i4S8J%Ip98#YrMA!GcqWn4b2-k7Jj_s zn@|>ejf$Xhva@Nb@^{(hr1gcwd2sP4Xe9$L9qQx{3^qkQmHGj4lu0mp#8L+B5Q3xi zEj(cpk-*Ai&&IO8a%MCn(Jvk+@WfJcEimbh1Q#R)lZ<3^JUYC7~5Y+d9w zvEbX})r$-nw=19Hk1rM6-ws1YZaZMcJ|t1c|Nqkr0iujC;n)KZEVQU1$w&#-5c}KJ z`hP92=AOVjoYsMvI%Hvl`}Z0B#g(^U3)3?HF=N8B1JLf=Qh_EJtKgd$C^`pK_V85( ru4QDKW%Q1+wBLmD3~Yl_3b=k-;V7wYe?=y?0(d#tx}eLf{Zjr1fbKUF literal 0 HcmV?d00001 diff --git a/frontend/lab/samples/ifs/img/quarter-circle.svg b/frontend/lab/samples/ifs/img/quarter-circle.svg index 6b59f664..414949c0 100644 --- a/frontend/lab/samples/ifs/img/quarter-circle.svg +++ b/frontend/lab/samples/ifs/img/quarter-circle.svg @@ -2,7 +2,7 @@ stroke="black" stroke-linecap="round" font-size="60" - viewBox="0 0 1000 1000" + viewBox="0 0 300px 300px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/quarter-circle6.svg b/frontend/lab/samples/ifs/img/quarter-circle6.svg new file mode 100644 index 00000000..69bf8658 --- /dev/null +++ b/frontend/lab/samples/ifs/img/quarter-circle6.svg @@ -0,0 +1,13 @@ + + + + + + + diff --git a/frontend/lab/samples/ifs/img/randrect.svg b/frontend/lab/samples/ifs/img/randrect.svg index 1a556a13..cbaf2bbc 100644 --- a/frontend/lab/samples/ifs/img/randrect.svg +++ b/frontend/lab/samples/ifs/img/randrect.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/red-dot-two-squares-alpha.svg b/frontend/lab/samples/ifs/img/red-dot-two-squares-alpha.svg index 1629bb93..946b0e80 100644 --- a/frontend/lab/samples/ifs/img/red-dot-two-squares-alpha.svg +++ b/frontend/lab/samples/ifs/img/red-dot-two-squares-alpha.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/red-dot-two-squares.svg b/frontend/lab/samples/ifs/img/red-dot-two-squares.svg index 2c48c893..f923354d 100644 --- a/frontend/lab/samples/ifs/img/red-dot-two-squares.svg +++ b/frontend/lab/samples/ifs/img/red-dot-two-squares.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/red-green-squares.svg b/frontend/lab/samples/ifs/img/red-green-squares.svg index 7ab019b8..c429355a 100644 --- a/frontend/lab/samples/ifs/img/red-green-squares.svg +++ b/frontend/lab/samples/ifs/img/red-green-squares.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/stripes.svg b/frontend/lab/samples/ifs/img/stripes.svg index bf19930e..61a55854 100644 --- a/frontend/lab/samples/ifs/img/stripes.svg +++ b/frontend/lab/samples/ifs/img/stripes.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/target-blue.svg b/frontend/lab/samples/ifs/img/target-blue.svg index 2d041418..40215c26 100644 --- a/frontend/lab/samples/ifs/img/target-blue.svg +++ b/frontend/lab/samples/ifs/img/target-blue.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/tetris.svg b/frontend/lab/samples/ifs/img/tetris.svg index 0108f53c..1dff5131 100644 --- a/frontend/lab/samples/ifs/img/tetris.svg +++ b/frontend/lab/samples/ifs/img/tetris.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/warm-squares.svg b/frontend/lab/samples/ifs/img/warm-squares.svg index e6ab9ad6..8991fa5a 100644 --- a/frontend/lab/samples/ifs/img/warm-squares.svg +++ b/frontend/lab/samples/ifs/img/warm-squares.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/img/window.svg b/frontend/lab/samples/ifs/img/window.svg index a2fa9e94..2db3ce8b 100644 --- a/frontend/lab/samples/ifs/img/window.svg +++ b/frontend/lab/samples/ifs/img/window.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/ifs/pi.md b/frontend/lab/samples/ifs/pi.md index e408a39c..e3439a01 100644 --- a/frontend/lab/samples/ifs/pi.md +++ b/frontend/lab/samples/ifs/pi.md @@ -20,7 +20,7 @@ answer. ## ⭐ Quarter circle -![quarter circle](img/quarter-circle.svg) +![quarter circle](img/quarter-circle6.svg) What's the **area** of the red **quarter-circle** if the radius is `1`? Can you estimate it to the nearest tenth? diff --git a/frontend/lab/samples/ifs/rectangles.md b/frontend/lab/samples/ifs/rectangles.md index d32781f9..4a351648 100644 --- a/frontend/lab/samples/ifs/rectangles.md +++ b/frontend/lab/samples/ifs/rectangles.md @@ -15,24 +15,16 @@ and positions. Need ideas? **Click** on the images below for their Evy code. -| ![Perspective] | ![2 Squares] | -| -------------- | ------------ | +| ![Perspective](img/perspective.svg "evy:edit") | ![2 Squares](img/2-squares.svg "evy:edit") | +| ---------------------------------------------- | ------------------------------------------ | Be inspired by culture and art -[Perspective]: img/perspective.svg "evy:edit" -[2 Squares]: img/2-squares.svg "evy:edit" - ### [>] Samples -| ![Bauhaus] | ![Mondrian] | -| ---------- | ----------- | -| ![Monster] | ![Tetris] | - -[Bauhaus]: img/bauhaus.svg "evy:edit" -[Mondrian]: img/mondrian.svg "evy:edit" -[Monster]: img/monster.svg "evy:edit" -[Tetris]: img/tetris.svg "evy:edit" +| ![Bauhaus](img/bauhaus.svg "evy:edit") | ![Mondrian](img/mondrian.svg "evy:edit") | +| -------------------------------------- | ---------------------------------------- | +| ![Monster](img/monster.svg "evy:edit") | ![Tetris](img/tetris.svg "evy:edit") | #### [>] More diff --git a/frontend/lab/samples/intro/img/circles-anika.svg b/frontend/lab/samples/intro/img/circles-anika.svg index e9fc1ebf..ec18de56 100644 --- a/frontend/lab/samples/intro/img/circles-anika.svg +++ b/frontend/lab/samples/intro/img/circles-anika.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/intro/img/circles-bottom-left.svg b/frontend/lab/samples/intro/img/circles-bottom-left.svg index 7c146a01..c9001669 100644 --- a/frontend/lab/samples/intro/img/circles-bottom-left.svg +++ b/frontend/lab/samples/intro/img/circles-bottom-left.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/intro/img/circles-bottom-right.svg b/frontend/lab/samples/intro/img/circles-bottom-right.svg index 4b5bfa48..4b3a2278 100644 --- a/frontend/lab/samples/intro/img/circles-bottom-right.svg +++ b/frontend/lab/samples/intro/img/circles-bottom-right.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/intro/img/circles-camh.svg b/frontend/lab/samples/intro/img/circles-camh.svg index 29e43395..1e6034b2 100644 --- a/frontend/lab/samples/intro/img/circles-camh.svg +++ b/frontend/lab/samples/intro/img/circles-camh.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/intro/img/circles-kathi.svg b/frontend/lab/samples/intro/img/circles-kathi.svg index 1381b74a..ea2e9b9c 100644 --- a/frontend/lab/samples/intro/img/circles-kathi.svg +++ b/frontend/lab/samples/intro/img/circles-kathi.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/intro/img/circles-mali.svg b/frontend/lab/samples/intro/img/circles-mali.svg index 1330de67..bc7569b6 100644 --- a/frontend/lab/samples/intro/img/circles-mali.svg +++ b/frontend/lab/samples/intro/img/circles-mali.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/intro/img/circles-top-left.svg b/frontend/lab/samples/intro/img/circles-top-left.svg index 4e27349a..c1ce4d17 100644 --- a/frontend/lab/samples/intro/img/circles-top-left.svg +++ b/frontend/lab/samples/intro/img/circles-top-left.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/intro/img/circles-top-right.svg b/frontend/lab/samples/intro/img/circles-top-right.svg index 329cd620..6af3feec 100644 --- a/frontend/lab/samples/intro/img/circles-top-right.svg +++ b/frontend/lab/samples/intro/img/circles-top-right.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/intro/img/coords-30-60.svg b/frontend/lab/samples/intro/img/coords-30-60.svg index 4759321e..f84e02c0 100644 --- a/frontend/lab/samples/intro/img/coords-30-60.svg +++ b/frontend/lab/samples/intro/img/coords-30-60.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/intro/img/move-6circles.svg b/frontend/lab/samples/intro/img/move-6circles.svg index 7d454185..c56e4ff0 100644 --- a/frontend/lab/samples/intro/img/move-6circles.svg +++ b/frontend/lab/samples/intro/img/move-6circles.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/loops/img/gradient-line.svg b/frontend/lab/samples/loops/img/gradient-line.svg index 03cabd3d..0fd6426c 100644 --- a/frontend/lab/samples/loops/img/gradient-line.svg +++ b/frontend/lab/samples/loops/img/gradient-line.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/loops/img/gradient-thick.svg b/frontend/lab/samples/loops/img/gradient-thick.svg index e5cf92a7..5773e987 100644 --- a/frontend/lab/samples/loops/img/gradient-thick.svg +++ b/frontend/lab/samples/loops/img/gradient-thick.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" > diff --git a/frontend/lab/samples/loops/img/target.svg b/frontend/lab/samples/loops/img/target.svg index f299131a..80dfd58a 100644 --- a/frontend/lab/samples/loops/img/target.svg +++ b/frontend/lab/samples/loops/img/target.svg @@ -3,6 +3,7 @@ stroke-linecap="round" font-size="60" viewBox="0 0 1000 1000" + style="width: 200px; height: 200px" xmlns="http://www.w3.org/2000/svg" >