Professional Documents
Culture Documents
Iron Man Arc Reactor
Iron Man Arc Reactor
Ian
input.onGesture(Gesture.Shake, function () {
light.setAll(0x00ffff)
light.setBrightness(20)
light.showAnimation(light.sparkleAnimation, 2000)
light.stopAllAnimations()
light.setAll(0x007fff)
light.setBrightness(72)
Code
light.showAnimation(light.colorWipeAnimation, 2000)
light.stopAllAnimations()
light.setAll(0x0000ff)
light.setBrightness(255)
light.showRing(
`blue blue blue blue blue blue blue blue blue blue`
)
input.setLoudSoundThreshold(100)
music.setVolume(255)
Writing the code was a fun music.playTone(330, music.beat(BeatFraction.Whole))
music.rest(music.beat(BeatFraction.Quarter))