class TextOnCurve { String txt; float x; float y; float radius; float ang; float off; TextOnCurve(String _txt, float _x, float _y, float _radius, float _ang, float _off) { txt = _txt; x = _x; y = _y; radius = _radius; ang = radians(_ang); off = radians(_off); } void draw() { fill(0); pushMatrix(); { translate(x, y); for (int i=0; i < txt.length(); i++) { pushMatrix(); { rotate(ang + i*off); translate(0, -radius); text(txt.charAt(i), 0, 0); } popMatrix(); } } popMatrix(); } void setRadius(int _radius) { radius = _radius; } void setOffset(int _off) { off = radians(_off); } }