Skip to content

Commit

Permalink
labsite: Update SVG dimension
Browse files Browse the repository at this point in the history
Update SVG dimension in labs when generating from evy source files so
that they render at a reasonable size on GitHub.
  • Loading branch information
juliaogris committed Oct 17, 2024
1 parent f2eb4ff commit 043fb5e
Show file tree
Hide file tree
Showing 52 changed files with 68 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions frontend/lab/samples/forloops/img/10-lines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/forloops/img/20-lines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/forloops/img/4-lines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/forloops/img/50-lines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/forloops/img/bubble.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/forloops/img/circle-cat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/forloops/img/circle-outline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/forloops/img/circle-rand.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/forloops/img/circle-wig.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/forloops/img/lines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/forloops/img/zebra.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/2-squares.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/apartments.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/bauhaus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/blue-pattern.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/bwrect.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/grass.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/house.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/mondrian.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/monster.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/perspective.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/pulse-step-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/pulse-step-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion frontend/lab/samples/ifs/img/quarter-circle-triangle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/lab/samples/ifs/img/quarter-circle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion frontend/lab/samples/ifs/img/quarter-circle.svg
13 changes: 13 additions & 0 deletions frontend/lab/samples/ifs/img/quarter-circle6.svg
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/randrect.svg
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/red-dot-two-squares-alpha.svg
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/red-dot-two-squares.svg
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/red-green-squares.svg
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/stripes.svg
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/target-blue.svg
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/tetris.svg
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/warm-squares.svg
1 change: 1 addition & 0 deletions frontend/lab/samples/ifs/img/window.svg
2 changes: 1 addition & 1 deletion frontend/lab/samples/ifs/pi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
18 changes: 5 additions & 13 deletions frontend/lab/samples/ifs/rectangles.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions frontend/lab/samples/intro/img/circles-anika.svg
1 change: 1 addition & 0 deletions frontend/lab/samples/intro/img/circles-bottom-left.svg
1 change: 1 addition & 0 deletions frontend/lab/samples/intro/img/circles-bottom-right.svg
1 change: 1 addition & 0 deletions frontend/lab/samples/intro/img/circles-camh.svg
1 change: 1 addition & 0 deletions frontend/lab/samples/intro/img/circles-kathi.svg
1 change: 1 addition & 0 deletions frontend/lab/samples/intro/img/circles-mali.svg
1 change: 1 addition & 0 deletions frontend/lab/samples/intro/img/circles-top-left.svg
Loading

0 comments on commit 043fb5e

Please sign in to comment.