def get_vertInfinity(numRings, rng): tracks = [] for i in range(0, numRings): actions, durations = RingTracks.getVerticalInfinityRingActions() track = RingTrack.RingTrack(actions, durations) tracks.append(track) return (tracks, infinityTOffsets[numRings - 1], infinityPeriod)
def get_horizInfinity(numRings, rng): tracks = [] for i in range(0, numRings): (actions, durations) = RingTracks.getHorizontalInfinityRingActions() track = RingTrack.RingTrack(actions, durations) tracks.append(track) return (tracks, infinityTOffsets[numRings - 1], infinityPeriod)
def get_horizInfinity(numRings, rng): """make the rings move in a sideways 8 pattern""" tracks = [] for i in range(0, numRings): actions, durations = RingTracks.getHorizontalInfinityRingActions() track = RingTrack.RingTrack(actions, durations) tracks.append(track) return tracks, infinityTOffsets[numRings-1], infinityPeriod
def get_evenCircle(numRings, rng): tracks = [] tOffsets = [] for i in range(0, numRings): (actions, durations) = RingTracks.getCircleRingActions() track = RingTrack.RingTrack(actions, durations) tracks.append(track) tOffsets.append(float(i) / numRings) return (tracks, tOffsets, fullCirclePeriod)
def get_followCircle(numRings, rng): tracks = [] tOffsets = [] for i in range(0, numRings): actions, durations = RingTracks.getCircleRingActions() track = RingTrack.RingTrack(actions, durations) delay = 0.12 tracks.append(track) tOffsets.append(float(i) * delay) return (tracks, tOffsets, fullCirclePeriod)
def get_evenCircle(numRings, rng): """make the rings move in a circle, evenly spaced""" tracks = [] tOffsets = [] for i in range(0, numRings): actions, durations = RingTracks.getCircleRingActions() track = RingTrack.RingTrack(actions, durations) tracks.append(track) tOffsets.append(float(i)/numRings) return tracks, tOffsets, fullCirclePeriod
def get_followCircle(numRings, rng): """make the rings follow each other closely in a circle""" tracks = [] tOffsets = [] for i in range(0, numRings): actions, durations = RingTracks.getCircleRingActions() track = RingTrack.RingTrack(actions, durations) delay = 0.12 tracks.append(track) tOffsets.append(float(i)*delay) return tracks, tOffsets, fullCirclePeriod
def get_evenCircle_withStationaryCenterRings(numRings, rng): tracks = [] tOffsets = [] numCenterRings = rng.randint(1, numRings - 1) positions = getTightCircleStaticPositions(numCenterRings) for i in range(0, numCenterRings): action = RingAction.RingActionStaticPos(positions[i]) track = RingTrack.RingTrack([action]) tracks.append(track) tOffsets.append(0) numOuterRings = numRings - numCenterRings for i in range(0, numOuterRings): actions, durations = RingTracks.getCircleRingActions() track = RingTrack.RingTrack(actions, durations) tracks.append(track) tOffsets.append(float(i) / numOuterRings) return (tracks, tOffsets, fullCirclePeriod)
def get_evenCircle_withStationaryCenterRings(numRings, rng): """make some rings move in a circle, evenly spaced, with others in a small, stationary circle around (0,0)""" tracks = [] tOffsets = [] numCenterRings = rng.randint(1,numRings-1) # add the stationary center rings positions = getTightCircleStaticPositions(numCenterRings) for i in range(0, numCenterRings): action = RingAction.RingActionStaticPos(positions[i]) track = RingTrack.RingTrack([action]) tracks.append(track) tOffsets.append(0) numOuterRings = numRings - numCenterRings for i in range(0, numOuterRings): actions, durations = RingTracks.getCircleRingActions() track = RingTrack.RingTrack(actions, durations) tracks.append(track) tOffsets.append(float(i)/numOuterRings) return tracks, tOffsets, fullCirclePeriod