From f632104d49f512da72275e514197faa21c850360 Mon Sep 17 00:00:00 2001 From: Alexei Anoshenko <2277098+anoshenko@users.noreply.github.com> Date: Wed, 27 Nov 2024 16:28:11 +0200 Subject: [PATCH] Update backgroundConicGradient.go --- backgroundConicGradient.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backgroundConicGradient.go b/backgroundConicGradient.go index 05444a4..c441fe9 100644 --- a/backgroundConicGradient.go +++ b/backgroundConicGradient.go @@ -72,6 +72,11 @@ func (point *BackgroundGradientAngle) color(session Session) (Color, bool) { case Color: return color, true + + default: + if n, ok := isInt(color); ok { + return Color(n), true + } } } return 0, false