From: Ben Soares Date: Sat, 29 Jun 2019 12:48:25 +0000 (+0100) Subject: JAL-3333 Sorry couldn't resist adding a bit of weighting to the rotation X-Git-Tag: Release_2_11_0~2^2~20 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0ccb42e83189e8ce1682af2885f5a44be0f260ea;p=jalview.git JAL-3333 Sorry couldn't resist adding a bit of weighting to the rotation --- diff --git a/src/jalview/gui/WebserviceInfo.java b/src/jalview/gui/WebserviceInfo.java index 2b85141..0a46600 100644 --- a/src/jalview/gui/WebserviceInfo.java +++ b/src/jalview/gui/WebserviceInfo.java @@ -814,7 +814,10 @@ protected void cancel_actionPerformed(ActionEvent e) int units = (int) ((System.currentTimeMillis() - startTime) / invSpeed); - angle += units; + double factor = 0.5 + + 1.5 * (0.5 + - (0.5 * Math.sin(Math.toRadians(angle + 45)))); + angle += units * factor; angle %= 360; startTime = System.currentTimeMillis();