Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move tutorial assets to tutorial/ #130

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ let () =

and renders this:

![circle](/tutorial-circle.png)
![circle](/tutorial/tutorial-circle.png)

Let's break this down. `init` does all the behind-the-scenes render magic that
allows our shape to be drawn to an image file. `circle 100` creates a circle at
Expand All @@ -48,7 +48,7 @@ like this:

`let c = circle ~c:(point 0 100) 100`

![offset-circle](/tutorial-circle-offset.png)
![offset-circle](/tutorial/tutorial-circle-offset.png)

Notice the call to `show`, the circle is placed within a list. This is how we
render shapes in Joy. Placing our shape arguments in a list allows us to draw
Expand All @@ -73,7 +73,7 @@ let () =
write ()
```

![rotate](/tutorial-rotate.png)
![rotate](/tutorial/tutorial-rotate.png)

Transformations can also be composed together:

Expand All @@ -92,7 +92,7 @@ let rect = rectangle 100 100 in
let spiral = repeat 16 (rotate 45) rect
```

![spiral](/tutorial-spiral.png)
![spiral](/tutorial/tutorial-spiral.png)

This is how we build more complex shapes out of the simple primitives and
transformations in the library. It may look a little intimidating if you are new
Expand Down Expand Up @@ -131,7 +131,7 @@ let l = line (point (-250) 250) in
let bunch = complex [ c; r; e; l ]
```

![complex](/tutorial-complex.png)
![complex](/tutorial/tutorial-complex.png)

# Going further

Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading