LogoLogo
  • Hello!
  • The Device
    • Device basics
    • Plugging in a module
  • APP
    • Downloading the app
    • Before you start
    • Connecting to The Device
    • Setting a module
    • Using the IMU
    • Logging in / account
    • Checking battery power
    • Renaming the Device
    • Updating the firmware
    • Beacon
  • STARTER PROJECTS
    • Interactive Lighting
    • Touch-Free Music Remote
    • Air Quality Monitor
  • Equations
    • Getting started with equations
    • Equation logic
    • Inputs
    • Outputs
      • Keyboard mode
      • Glow Output & Lighting
        • Fade
        • Dot
        • Arc
        • Rainbow
        • Glitter
      • Cloud Output
    • Sequences
    • Casting an equation
    • Editing & deleting equations
    • Removing an equation
  • API
    • Languages
      • Javascript
      • Python CSV
    • Platforms
      • Unity
        • Windows
        • MacOS
      • TouchDesigner
      • Unreal Engine
    • Streaming
  • Modes
    • Beacon
  • Modules
    • Button
    • Color
    • Dial
    • Digital
    • Distance
    • Environment
    • Flex
    • Force
    • Gesture
    • Glow
    • Joystick
    • Light
    • Motion
    • Move
    • Proximity
    • Slider
    • Sound
    • Spin
    • Thermal
    • Tone
  • Algorithms
    • Orientation
Powered by GitBook
On this page
  • Properties
  • Code
  1. Modules

Glow

Change the color of lights.

PreviousGestureNextJoystick

Last updated 1 year ago

Properties

Name
Input
Range

SetColor

Color

0 - 255 for r, g, b

What does the output correspond to?

Sending a hex value will turn the LEDs to the same hex color.

What ports can I use it on?

All of them!

Code

using Magic;

public class Demo : MonoBehaviour
{
    // create a reference to the module
    public Magic.Modules.GlowModule glow;
    
    void Start()
    {
    }
    
    void Update()
    {
        // create a new color
        Color blue = new Color(0, 0, 255);
        
        // call the module's function
        glow.SetColor(blue);
    }
}