about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/types/color.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types/color.nim b/src/types/color.nim
index f96bfc49..664e2047 100644
--- a/src/types/color.nim
+++ b/src/types/color.nim
@@ -536,7 +536,7 @@ proc fromJS2*(ctx: JSContext, val: JSValue, o: var JSResult[RGBAColor]) =
     # parse
     let s = fromJS[string](ctx, val)
     if s.isSome:
-      let x = parseHexColor(s.get)
+      let x = parseRGBAColor(s.get)
       if x.isSome:
         o.ok(x.get)
       else: