@@ -72,11 +72,16 @@ Elm.Native.Graphics.Text = function(elm) {
7272 }
7373 function size(px, text) { return addStyle('font-size', px + 'px', text) }
7474 var header = addTag('h1');
75− function height(h, text) { return addStyle('font-size', hf+'em', text) }
75+ function height(h, text) { return addStyle('font-size', h+'em', text) }
7676 function italic(text) { return addStyle('font-style', 'italic', text) }
7777 var bold = addTag('b');
78+
79+ function extract(c) {
80+ if (c._3 === 1) { return 'rgb(' + c._0 + ',' + c._1 + ',' + c._2 + ')'; }
81+ return 'rgba(' + c._0 + ',' + c._1 + ',' + c._2 + ',' + c._3 + ')';
82+ }
7883 function color(c, text) {
79− return addStyle('color', Color.extract(c), text);
84+ return addStyle('color', extract(c), text);
8085 }
8186 function underline(text) { return addStyle('text-decoration', 'underline', text) }
8287 function overline(text) { return addStyle('text-decoration', 'overline', text) }