misc
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user