diff options
author | wout <wout@impinc.co.uk> | 2014-01-28 13:48:11 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-01-28 13:48:11 +0100 |
commit | 97f12207121d4e3171c5ef07d8098f06fb509f67 (patch) | |
tree | c6196344e7cd455cf0e0755b6dcd6545422ff46d | |
parent | f6404a51bde49e6e747174db12782106d9411ded (diff) | |
download | svg.js-97f12207121d4e3171c5ef07d8098f06fb509f67.tar.gz svg.js-97f12207121d4e3171c5ef07d8098f06fb509f67.zip |
Updated REAME0.38
-rw-r--r-- | README.md | 15 |
1 files changed, 3 insertions, 12 deletions
@@ -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. |