Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielVandH authored Oct 6, 2023
1 parent ce5c214 commit 3e96ac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WGLMakie/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ You can also embed plots in a JSServe webpage:

```julia
using JSServe
app = App(session, request)
app = App() do session, request
return DOM.div(
DOM.h1("Some Makie Plots:"),
meshscatter(1:4, color=1:4),
meshscatter(1:4, color=rand(RGBAf, 4)),
meshscatter(1:4, color=rand(RGBf, 4)),
meshscatter(1:4, color=:red),
meshscatter(rand(Point3f, 10), color=rand(RGBf, 10)),
meshscatter(rand(Point3f, 10), marker=Pyramid(Point3f(0), 1f0, 1f0)),
meshscatter(rand(Point3f, 10), marker=WGLMakie.Pyramid(Point3f(0), 1f0, 1f0)),
)
end
isdefined(Main, :server) && close(server)
Expand Down

0 comments on commit 3e96ac9

Please sign in to comment.