Skip to content

Commit

Permalink
Update README.md (#3048)
Browse files Browse the repository at this point in the history
And test if CI hangs like in #3044
  • Loading branch information
SimonDanisch committed Jul 5, 2023
1 parent b8576c1 commit 7a15b14
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions WGLMakie/README.md
@@ -1,11 +1,9 @@
WGLMakie is a WebGL backend for the [Makie.jl](https://www.github.com/MakieOrg/Makie.jl) plotting package, implemented using Three.js.

Read the docs for Makie and it's backends [here](http://docs.makie.org/dev)
Read the docs for Makie and it's backends [here](http://docs.makie.org)

# Usage

Now, it should just work like Makie:

```julia
using WGLMakie
scatter(rand(4))
Expand All @@ -16,7 +14,8 @@ In VSCode, this should open in the plotpane.
You can also embed plots in a JSServe webpage:

```julia
function dom_handler(session, request)
using JSServe
app = App(session, request)
return DOM.div(
DOM.h1("Some Makie Plots:"),
meshscatter(1:4, color=1:4),
Expand All @@ -27,8 +26,8 @@ function dom_handler(session, request)
meshscatter(rand(Point3f, 10), marker=Pyramid(Point3f(0), 1f0, 1f0)),
)
end
isdefined(Main, :app) && close(app)
app = JSServe.Server(dom_handler, "127.0.0.1", 8082)
isdefined(Main, :server) && close(server)
server = JSServe.Server(app, "127.0.0.1", 8082)
```

## Sponsors
Expand Down

0 comments on commit 7a15b14

Please sign in to comment.