Skip to content

Commit

Permalink
docs bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Untergassmair committed Mar 19, 2020
1 parent 112638e commit 5054ee1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions docs/Project.toml
@@ -1,8 +1,13 @@
[deps]
AutoViz = "82aa6e0c-a491-5edf-8d4b-c16b98e4ea17"
AutomotiveDrivingModels = "99497e54-f3d6-53d3-a3a9-fa9315a7f1ba"
Blink = "ad839575-38b3-5650-b840-f874b8c74a25"
Cairo = "159f3aea-2a34-519c-b102-8c37f9878175"
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
Interact = "c601a237-2ae4-5e1e-952c-7a85b0c7eef1"
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
Reel = "71555da5-176e-5e73-a222-aebc6c6e4f2f"

[compat]
AutoViz = "^0.8.0"
Expand Down
7 changes: 3 additions & 4 deletions docs/lit/tutorials/basics.jl
Expand Up @@ -173,7 +173,7 @@ struct MyRenderableCircle
end

function AutoViz.add_renderable!(rendermodel::RenderModel, circle::MyRenderableCircle)
# add the desired render instructions to the rendermodel
## add the desired render instructions to the rendermodel
add_instruction!(
rendermodel, AutoViz.render_circle,
(circle.pos.x, circle.pos.y, circle.radius, circle.color),
Expand All @@ -184,8 +184,7 @@ end

circles = [MyRenderableCircle(VecE2(4i,3.0*(1+sin(i/4))), .5+rand(), rand(RGB)) for i in 1:20]
snapshot = render([roadway, circles..., scene], canvas_height=120)
#md
write("custom_circles.svg", snapshot) # hide
#md write("custom_circles.svg", snapshot) # hide

#md # ![custom circles](custom_circles.svg)

Expand All @@ -210,7 +209,7 @@ animation = roll(fps=1.0/timestep, duration=nticks*timestep) do t, dt
render([roadway, scenes[i]], canvas_height=120)
end

#md write("roadway_animated.gif", animation)
#md write("roadway_animated.gif", animation) #hide

#md # ![animated roadway](roadway_animated.gif)

Expand Down

0 comments on commit 5054ee1

Please sign in to comment.