Skip to content

Instantly share code, notes, and snippets.

View colinfizgig's full-sized avatar

William Freeman colinfizgig

View GitHub Profile
@colinfizgig
colinfizgig / hubs trigger volume color box
Created November 19, 2020 21:50
This is a script to create a trigger volume test for Mozilla Hubs. It sets up a trigger-volume that changes the color of a box
function addtriggerVolume(){
// create a target object with some components to modify. in this case we modify the material component on the a-box
var el = document.createElement("a-box")
el.setAttribute("id", "target")
el.setAttribute("networked", { template: "#interactable-media" } )
el.setAttribute("media-loader", "");
el.object3D.position.y = 1;
el.object3D.position.x = 3;
el.setAttribute("material", "color: #FF0000");
/* examples of usage :
slides.setupSlides() // load and layout slides with links
slides.nextSlide() // switch to the next slide (loops)
slides.removeAllMedia() // remove all slides
slides.startAutoPresent() // move from slide to slide in the allotated time then drops them all
slides.dropAllContent()
*/
var slides = {
timer:20000, //ms
@colinfizgig
colinfizgig / keybase.md
Created September 21, 2018 20:45
publickey for keybase

Keybase proof

I hereby claim:

  • I am colinfizgig on github.
  • I am colinfizgig (https://keybase.io/colinfizgig) on keybase.
  • I have a public key ASB-u7QZHKacI3gx6n2q4Aj2dEcGR6vOwbTVFkZaVTnJcgo

To claim this, I am signing this object: