the length textAscent() and textDescent() calculate stands for which part of the letter? why multiply a scalar of 0.8?
float base = height * 0.75; float scalar = 0.8; // Different for each font textSize(32); // Set initial text size float a = textAscent() * scalar; // Calc ascent line(0, base-a, width, base-a); text("dp", 0, base); // Draw text on baseline textSize(64); // Increase text size a = textAscent() * scalar; // Recalc ascent line(40, base-a, width, base-a);
Does someone have any ideas of creating a parallel coordinates using processing? I am a beginner and I can't figure out how to draw that zigzag lines...
I supposed that the while() function only execute on time that only draw the circle with r=200 then exit, but the result shows 10 circles, seeming to run 10 times until r = 0 then exit. So I think there must be something wrong with the 'm' variable. If I directly set the m equals 180, there is no problem at all, but what's wrong with the width's value, shouldn't it be equal to 200?