aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-01-28 13:48:11 +0100
committerwout <wout@impinc.co.uk>2014-01-28 13:48:11 +0100
commit97f12207121d4e3171c5ef07d8098f06fb509f67 (patch)
treec6196344e7cd455cf0e0755b6dcd6545422ff46d
parentf6404a51bde49e6e747174db12782106d9411ded (diff)
downloadsvg.js-97f12207121d4e3171c5ef07d8098f06fb509f67.tar.gz
svg.js-97f12207121d4e3171c5ef07d8098f06fb509f67.zip
Updated REAME0.38
-rw-r--r--README.md15
1 files changed, 3 insertions, 12 deletions
diff --git a/README.md b/README.md
index 515c2eb..32e8208 100644
--- a/README.md
+++ b/README.md
@@ -959,18 +959,9 @@ Note: the `x` and `y` positions are tested against the relative position of the
Svg.js has a dedicated color module handling different types of colors. Accepted values are:
-- hex string; three based (e.g. #f06) or six based (e.g. #ff0066)
-```javascript
-var color = new SVG.Color('#f06')
-```
-- rgb string; e.g. rgb(255, 0, 102)
-```javascript
-var color = new SVG.Color('rgb(255, 0, 102)')
-```
-- rgb object; e.g. { r: 255, g: 0, b: 102 }
-```javascript
-var color = new SVG.Color({ r: 255, g: 0, b: 102 })
-```
+- hex string; three based (e.g. #f06) or six based (e.g. #ff0066) `new SVG.Color('#f06')`
+- rgb string; e.g. rgb(255, 0, 102) `new SVG.Color('rgb(255, 0, 102)')`
+- rgb object; e.g. { r: 255, g: 0, b: 102 } `new SVG.Color({ r: 255, g: 0, b: 102 })`
Note that when working with objects is important to provide all three values every time.