aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/README.md b/README.md
index 138ea7c..b5e280f 100644
--- a/README.md
+++ b/README.md
@@ -1782,6 +1782,22 @@ Get the brightness of a color:
color.brightness() //-> returns 0.344
```
+### morph()
+Make a color morphable:
+
+```javascript
+color.morph('#000')
+```
+
+### at()
+Get morphable color at given position:
+
+```javascript
+var color = new SVG.Color('#ff0066').morph('#000')
+color.at(0.5).toHex() //-> '#7f0033'
+```
+
+
This is the perceived brighness where `0` is black and `1` is white.