Fairly new to processing but have been building a sketch controlled via OSC from MaxMSP.
I'm up to speed on the OSC side, but there's a couple of things I would like to implement in the sketch to finish it off. I am using HSB.
Firstly, I am using a metro object already in my patch (it controls the brightness of an object to switch it on/off). I would also like it to control a light object so you can get an effect of being in a club. What is the best way to do this? Noting that I don't want to just turn the light on and off, but have it pulsate so when it switches 'off', the light fades away.
Secondly, I have some brightly coloured ellipses and a black background, how can the colours of these objects be slowly blended in to the background (As a static appearance rather than a changing one) so they appear more ethereal than stark blobs?
I'm coding a large project that has many different shapes on the sketch that react differently to varying OSC messages.
I now wish to add a simple line (that will but a line through one of the shapes) which I can make appear and disappear with a simple boolean statement over OSC.
However, when I then communicate with the sketch the following occurs:
MU1 ==1
Line appears as expected on sketch, all shapes on sketch become smaller (presumably in relation to strokeWeight)
MU1 ==0
Line Disappears and all shapes return to original size
So as far as I understand, strokeWeight must be affecting all pixel widths? Is it intended for this purpose. I would have thought seeing as I had declared it in a class outside of the main code it would not affect other objects?
first time here so maybe a noob question. Pretty new to processing but getting to grips.
I want to use OSC messages to control colour elements such as brightness using the HSB colorMode.
I have my sketch running with all the correct code as far as I can tell. I have my OSC message coming in with the prepended title of /a1. I then define colour (in HSB) as:
color(350,100,a1);
I am hoping then that I can then use a slider in MaxMSP to increase/decrease the brightness of my object.
However, this isn't working. I know there is not an issue with my Max patch as I have tested it with a sketch that my lecturer created and I can control that fine. And in comparison, my code seems to be the same.
Is it just not possible to adjust elements like this? I doubt it of course.