I am trying to accomplish the following: draw a string, char by char, on the center (both vertically and horizontally) inside a bounding box (also both both centered vertically and horizontally),
everytime I click the mouse.
The problem I can't seem to wrap my head around is how to do each char everytime I click the mouse. Below, there's the code for achieving what I want,
but it draws the all text at once, and that's not what I want.
Any idea how to achive it?
I guess one solution might be, doing all the centering stuff by myself and making a text function call by each letter everytime the mouse gets clicked, but that would imply writing a lot of desnecessary could (?)
Here's an a few images to better explain my question:
I have coded this function that allows you to draw a circle centered at (centerX, centerY) with a determined number of equal divisions.
My problem is that the rendering for divisions numbers not that hight (16+) start to get
a strange rendering effect at the center. I am already using smooth(). Any idea how to improve this? Thanks.
Here are some examples:
divisions = 16
divisions = 50
This is the whole code for the sketch:
void setup() {
size(500, 500);
background(255);
smooth();
stroke(123);
drawCircle(200, 200, 200, 12);
}
void drawCircle(int radius, int centerX, int centerY, int divisions) {
I am trying to do something as simple as sending a message, which may contain special characters (e.g. "á", "à", "ão", "ões", ...) from Max/MSP to Processing.
In Max/MSP I am using the object "udpsend" and in Processing the "OscP5" object.
I have no trouble receiving normal characters (those inside the ASCII values, I suppose) with no problem. The real problem is when sending a special char like those mentioned above, which I can't read in Processing. Sending something like "ão" from Max/MSP gives me "??o" in Processing.
I have no problem sending a message with special characters from a Max patch to another one.
I have googled extensively for this issue, but haven't found any solution. What am I missing here?