Home › Forums › Making things with IanniX › Create curves from Processing to Iannix › Reply To: Create curves from Processing to Iannix
It´s working ! Here´s my code with a moving point:
———–
a = a + 1;
float move1 = map(sin(a), -1, 1,-10,20);
float move2 = map(cos(a), -1, 1,-3,13);
iannix.send(“setpointat”, 0, 2, move1, move2 );
if(keyPressed){
if(key == ‘q’){
OscMessage iannixMessage = new OscMessage(“/iannix/add”);
iannixMessage.add(“curve”);
iannixMessage.add(0);
oscManager.send(iannixMessage, iannixLocation);
}
}
————–
Now the question is: how can I choose to add a straight or a smooth curve ?
: )
Thanks !
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |