Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dotnet-websharper/threejs.trackballcontrols
Three.js TrackballControls for WebSharper
https://github.com/dotnet-websharper/threejs.trackballcontrols
Last synced: 7 days ago
JSON representation
Three.js TrackballControls for WebSharper
- Host: GitHub
- URL: https://github.com/dotnet-websharper/threejs.trackballcontrols
- Owner: dotnet-websharper
- License: other
- Created: 2018-08-06T16:29:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-23T21:08:13.000Z (over 3 years ago)
- Last Synced: 2024-08-02T05:09:28.652Z (3 months ago)
- Language: JavaScript
- Homepage: https://websharper.com
- Size: 3.03 MB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-websharper - ThreeJs.TrackballControls - Trackball-style camera controls for Three.js. (Libraries / JavaScript library bindings)
README
# TrackballControls
WebSharper binding for TrackballControls, which enables controlling a three.js camera with mouse or touchscreen.
## Example
```fsharp
let camera = new THREE.PerspectiveCamera(45., 16./9.)let controls = new THREE.TrackballControls(camera)
//---
//Render loop
[]
let render (frame : unit -> unit) = Xlet rec frame () =
renderer.render(scene, camera)
controls.Update()render frame
//---
```