Liking cljdoc? Tell your friends :D
Clojure only.

mikera.timeline.protocols


PTimelinecljprotocol

add-eventclj

(add-event tl time value)

Adds an event with the specific value at the given time

Adds an event with the specific value at the given time

event-timeclj

(event-time tl index)

Gets the time from the event on timeline at the specified index. Index must be valid

Gets the time from the event on timeline at the specified index. Index must be valid

event-valueclj

(event-value tl index)

Gets the value from the event on timeline at the specified index. Index must be valid

Gets the value from the event on timeline at the specified index. Index must be valid

seek-indexclj

(seek-index tl time)

Returns the event index of the last event before the specified time, or nil if no such event exists. time must be a long instant

Returns the event index of the last event before the specified time, or nil if no such event exists.
time must be a long instant

slice-indexesclj

(slice-indexes tl start-index end-index)

Slices a subrange of events

Slices a subrange of events

value-atclj

(value-at tl time)

Gets the value of the timeline at a specified time. time must be a long instant

Gets the value of the timeline at a specified time. time must be a long instant

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close