From 238753c47c08e75f425d39a917d7a480d48678a2 Mon Sep 17 00:00:00 2001 From: "Eevee (Alex Munroe)" Date: Wed, 28 Aug 2013 18:42:59 -0700 Subject: Alpha is relative to 1, not 100. --- scss/functions/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scss/functions/core.py b/scss/functions/core.py index de638b5..61e86bf 100644 --- a/scss/functions/core.py +++ b/scss/functions/core.py @@ -60,7 +60,7 @@ def rgba2(color, a=None): if a is None: alpha = 1 else: - alpha = _interpret_percentage(a, relto=100) + alpha = _interpret_percentage(a) return Color.from_rgb(*color.rgba[:3], alpha=alpha) -- cgit v1.2.1