/** * Draw a single character on screen (with a z coordinate) */ public void text(char c, float x, float y, float z) { g.text(c, x, y, z); }
/** * Draw a chunk of text. * Newlines that are \n (Unix newline or linefeed char, ascii 10) * are honored, but \r (carriage return, Windows and Mac OS) are * ignored. */ public void text(String str, float x, float y) { g.text(str, x, y); }
/** * <h3>Advanced</h3> * Draw a chunk of text. * Newlines that are \n (Unix newline or linefeed char, ascii 10) * are honored, but \r (carriage return, Windows and Mac OS) are * ignored. */ public void text(String str, float x, float y) { if (recorder != null) recorder.text(str, x, y); g.text(str, x, y); }
/** * This does a basic number formatting, to avoid the * generally ugly appearance of printing floats. * Users who want more control should use their own nf() cmmand, * or if they want the long, ugly version of float, * use String.valueOf() to convert the float to a String first. */ public void text(float num, float x, float y) { g.text(num, x, y); }
public void text(float num, float x, float y, float z) { g.text(num, x, y, z); }
/** * This does a basic number formatting, to avoid the * generally ugly appearance of printing floats. * Users who want more control should use their own nf() cmmand, * or if they want the long, ugly version of float, * use String.valueOf() to convert the float to a String first. * * @param num the numeric value to be displayed */ public void text(float num, float x, float y) { if (recorder != null) recorder.text(num, x, y); g.text(num, x, y); }
/** * Draw a single character on screen. * Extremely slow when used with textMode(SCREEN) and Java 2D, * because loadPixels has to be called first and updatePixels last. */ public void text(char c, float x, float y) { g.text(c, x, y); }
/** * Same as above but with a z coordinate. */ public void text(String str, float x, float y, float z) { g.text(str, x, y, z); }
/** * This does a basic number formatting, to avoid the * generally ugly appearance of printing floats. * Users who want more control should use their own nf() cmmand, * or if they want the long, ugly version of float, * use String.valueOf() to convert the float to a String first. */ public void text(float num, float x, float y) { text(PApplet.nfs(num, 0, 3), x, y); }
public void text(float num, float x, float y, float z) { text(PApplet.nfs(num, 0, 3), x, y, z); }
/** * This does a basic number formatting, to avoid the * generally ugly appearance of printing floats. * Users who want more control should use their own nf() cmmand, * or if they want the long, ugly version of float, * use String.valueOf() to convert the float to a String first. * * @param num the numeric value to be displayed */ public void text(float num, float x, float y) { text(PApplet.nfs(num, 0, 3), x, y); }
/** * Draw a single character on screen (with a z coordinate) */ public void text(char c, float x, float y, float z) { // if ((z != 0) && (textMode == SCREEN)) { // String msg = "textMode(SCREEN) cannot have a z coordinate"; // throw new RuntimeException(msg); // } if (z != 0) translate(0, 0, z); // slowness, badness text(c, x, y); // textZ = z; if (z != 0) translate(0, 0, -z); }
public void text(char[] chars, int start, int stop, float x, float y, float z) { if (z != 0) translate(0, 0, z); // slow! text(chars, start, stop, x, y); // textZ = z; if (z != 0) translate(0, 0, -z); // inaccurate! }
/** * Same as above but with a z coordinate. */ public void text(String str, float x, float y, float z) { if (z != 0) translate(0, 0, z); // slow! text(str, x, y); // textZ = z; if (z != 0) translate(0, 0, -z); // inaccurate! }
/** * Same as above but with a z coordinate. */ public void text(String str, float x, float y, float z) { // if ((z != 0) && (textMode == SCREEN)) { // String msg = "textMode(SCREEN) cannot have a z coordinate"; // throw new RuntimeException(msg); // } if (z != 0) translate(0, 0, z); // slow! text(str, x, y); // textZ = z; if (z != 0) translate(0, 0, -z); }