Adding a Pause Button

Toby suggested that adding a pause button would be beneficial to the program. In order to do this I needed to look in to noLoop() and loop(), which are both Processing functions to stop Processing from calling draw() and then to resume calling draw(). This lead me to https://forum.processing.org/one/topic/start-stop-pause-processing.html which user GoToLoop describes how toContinue reading “Adding a Pause Button”

Threading and Phillips Hue

Updating the Phillips Hue was giving some performance issues, since it would pause the sketch until it sent its PUT HTTP request. Although this didn’t happen every time, when it did happen it would pause the visualisation for about half a second which took away from the immersive experience I was looking to create inContinue reading “Threading and Phillips Hue”

Incorporating Phillips Hue

Phillips Hue uses the CIE colour mode; it takes just two float inputs between 0 and 1 instead of the three inputs for RGB. Therefore, I need to be able to convert from RGB to CIE. Luckily, Tim on StackOverflow has uploaded a function to convert RGB to CIE specifically for Phillips Hue (https://stackoverflow.com/questions/22564187/rgb-to-philips-hue-hsb). IContinue reading “Incorporating Phillips Hue”

Controlling Phillips Hue using Processing

Firstly, I used https://developers.meethue.com/develop/get-started-2/ to find the IP address that my Phillips Hue Bridge was on, generate an API key, as well as looking at what lights I have connected. There is also some information on what HTTP requests are used to control the light; I have used GET requests to see what state theContinue reading “Controlling Phillips Hue using Processing”

Design a site like this with WordPress.com
Get started