From 99492874ca6fc5b45503dd0e518a23094cb037e2 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Tue, 17 Jan 2023 14:47:07 -0500 Subject: [PATCH] Clock forces an aspect ratio --- elements/fun/clock.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/elements/fun/clock.go b/elements/fun/clock.go index b168e55..8690978 100644 --- a/elements/fun/clock.go +++ b/elements/fun/clock.go @@ -63,6 +63,10 @@ func (element *AnalogClock) draw () { 0, 0.7, (second - 15) / 30 * math.Pi) } +func (element *AnalogClock) MinimumHeightFor (width int) (height int) { + return width +} + func (element *AnalogClock) radialLine ( source artist.Pattern, inner float64,