()
| 582 | } |
| 583 | |
| 584 | func (t *Triangle) stepCounter() { |
| 585 | if t.counterReload { |
| 586 | t.counterValue = t.counterPeriod |
| 587 | } else if t.counterValue > 0 { |
| 588 | t.counterValue-- |
| 589 | } |
| 590 | if t.lengthEnabled { |
| 591 | t.counterReload = false |
| 592 | } |
| 593 | } |
| 594 | |
| 595 | func (t *Triangle) output() byte { |
| 596 | if !t.enabled { |