Silly little cli celebration tool
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sequence.go 159B

1234567891011
  1. package yay
  2. type Sequence struct {
  3. Frame int
  4. Frames [][]rune
  5. }
  6. func (s *Sequence) Next() []rune {
  7. s.Frame += 1
  8. return s.Frames[s.Frame%len(s.Frames)]
  9. }