RiTa
index
Name RiText.createLines()
Class RiText
Description Creates an array of RiText, one per line of input 'text', constrained to the 'maxChars' specified, starting with upper left corner at 'startX' and 'startY'.
Syntax
RiText.createLines(pApplet, font, text, startX, startY, maxCharsPerLine, leading);
RiText.createLines(pApplet, pf, text, rectangle);
RiText.createLines(pApplet, pf, text, rectangle, leading);
RiText.createLines(pApplet, text, startX, startY);
RiText.createLines(pApplet, text, startX, startY, maxCharsPerLine);
RiText.createLines(pApplet, lines, startX, startY, maxCharsPerLine, leading);
RiText.createLines(p, text, startX, startY);
RiText.createLines(p, text, startX, startY, maxCharsPerLine);
RiText.createLines(pApplet, text, startX, startY, maxCharsPerLine, leading);
RiText.createLines(pApplet, text, rectangle);
Parameters
startX   x-position for 1st line of text
startY   x-position for 1st line of text
leading   # of pixels to add between lines in addition to the textAscent (defaults to ~2x the textAscent of the current font)
Returns rita.RiText[] - RiText[] or null on empty input
Usage Web & Application    [static]
Related