
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
three-dat.gui
Advanced tools
A package which create THREE.js controls on Dat.GUI
First install the npm package
npm install three-dat.gui
Or with yarn
yarn add three-dat.gui
Let's create a simple THREE.js example which display a gui controller for our THREE.MeshStandardMaterial
import Dat from 'dat.gui';
import init from 'three-dat.gui'; // Import initialization method
init(Dat); // Init three-dat.gui with Dat
/*
... init scene, renderer & camera
*/
var gui = new Dat.GUI();
var geometry = new THREE.BoxGeometry(1, 1, 1);
var material = new MeshStandardMaterial();
var mesh = new THREE.Mesh(geometry, material);
scene.add(mesh);
gui.addMaterial('standard_material', material);
You can add quickly many kind of THREE.js objects.
THREE.Material
with gui.addMaterial("name", material)
THREE.Light
with gui.addLight("name", light)
THREE.Vector
with gui.addVector("name", vector)
THREE.Scene
with gui.addScene("name", scene)
THREE.Object3D
with gui.addObject3D("name", object)
THREE.Mesh
with gui.addMesh("name", mesh)
THREE.Fog
with gui.addFog("name", fog)
THREE.FogExp2
with gui.addFogExp2("name", fog)
THREE.Object3D
FAQs
A package which create THREE.js controls on Dat.GUI
We found that three-dat.gui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.