This commit is contained in:
2022-08-21 16:19:24 +02:00
parent b303a623f6
commit c3cc65618b
6 changed files with 29 additions and 25 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ func (e Gradient) State(index, length, round int) device.State {
if e.Reverse {
round = -round
}
walkedIndex := ((length + index) - round) % length
walkedIndex := ((length + index) - (round % length)) % length
return gradientState(e.States, e.Interpolate, walkedIndex, length)
}