Reusable 3D Earth globe widget (pure OCaml + WebGL)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ocaml-linkedin: apply dune fmt

Pure formatting changes from `dune fmt`: doc comment placement moves
from above the binding to below it for `type`s, multi-line `match`
expressions collapse onto one line where they fit, and infix operator
applications pick up spaces (`Soup.($?)` -> `Soup.( $? )`). No
semantic changes.

+22 -3
+13 -3
README.md
··· 6 6 7 7 ## Installation 8 8 9 + Install with opam: 10 + 11 + ```sh 12 + $ opam install globe 9 13 ``` 10 - opam install globe 14 + 15 + If opam cannot find the package, it may not yet be released in the public 16 + `opam-repository`. Add the overlay repository, then install it: 17 + 18 + ```sh 19 + $ opam repo add samoht https://tangled.org/gazagnaire.org/opam-overlay.git 20 + $ opam update 21 + $ opam install globe 11 22 ``` 12 23 13 24 ## Usage 14 25 15 26 ```ocaml 16 27 (* Initialize a globe scene on a canvas element *) 17 - let scene = Globe_webgl.Scene.v canvas_el in 18 - 28 + let scene = Globe_webgl.Scene.v canvas_el 19 29 (* Add satellites from J2000 state vectors *) 20 30 let sat = 21 31 Globe.Satellite.v ~pos ~vel ~color:(Globe.Color.v 0.2 0.8 1.0 1.0)
+6
dune
··· 1 1 (env 2 2 (dev 3 3 (flags :standard %{dune-warnings}))) 4 + 5 + (mdx 6 + (files 7 + README.md 8 + ) 9 + (libraries globe))
+2
dune-project
··· 1 1 (lang dune 3.21) 2 + (using mdx 0.4) 2 3 (name globe) 3 4 (source (tangled gazagnaire.org/ocaml-globe)) 4 5 (formatting (enabled_for ocaml)) ··· 19 20 fmt 20 21 kepler 21 22 sgp4 23 + (mdx :with-test) 22 24 vec3))
+1
globe.opam
··· 14 14 "fmt" 15 15 "kepler" 16 16 "sgp4" 17 + "mdx" {with-test} 17 18 "vec3" 18 19 "odoc" {with-doc} 19 20 ]