diff --git a/README.markdown b/README.markdown index 5c18b754..316daefc 100644 --- a/README.markdown +++ b/README.markdown @@ -293,6 +293,20 @@ Embeds an image into the SVG/VML canvas. var c = paper.image("apple.png", 10, 10, 100, 100); +#### text + +Draws a text string. + +##### Parameters + +1. x number X coordinate position +2. y number Y coordinate position +3. text string The text string to draw. + +##### Usage + + var t = paper.text(10, 10, "Look mom, I'm scalable!"); + #### path Initialises path drawing. Typically, this function returns an empty `path` object and to draw paths you use its built-in methods like `lineTo` and `curveTo`. However, you can also specify a path literally by supplying the path data as a second argument. diff --git a/reference.html b/reference.html index 73a686e3..1a6c5a87 100644 --- a/reference.html +++ b/reference.html @@ -289,6 +289,20 @@

Parameters

Usage

var c = paper.image("apple.png", 10, 10, 100, 100);
+

+ text +

+

+ Draws a text string. +

+

Parameters

+
    +
  1. x number X coordinate position.
  2. +
  3. y number Y coordinate position.
  4. +
  5. text string The text string to draw.
  6. +
+

Usage

+
var t = paper.text(10, 10, "Look mom, I'm scalable!");

path