mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-12 00:23:08 +00:00
Use gifs to improve documentation. (#21)
Former-commit-id: 40e5ccedcf5d1ca8f0d5cc373ba3b3c4cc2d6c6a
This commit is contained in:
parent
c2af9fbac0
commit
dfd52961ae
50 changed files with 512 additions and 129 deletions
|
|
@ -17,11 +17,11 @@ import System.Random.Shuffle
|
|||
|
||||
main :: IO ()
|
||||
main = reanimate $
|
||||
demonstrateAlgorithm "Bubble sort" bubbleSort `before`
|
||||
demonstrateAlgorithm "Merge sort (left leaning)" mergeSort `before`
|
||||
demonstrateAlgorithm "Merge sort" mergeSortUp `before`
|
||||
demonstrateAlgorithm "Insertion sort" insertSort `before`
|
||||
demonstrateAlgorithm "Selection sort" selectionSort `before`
|
||||
demonstrateAlgorithm "Bubble sort" bubbleSort `seqA`
|
||||
demonstrateAlgorithm "Merge sort (left leaning)" mergeSort `seqA`
|
||||
demonstrateAlgorithm "Merge sort" mergeSortUp `seqA`
|
||||
demonstrateAlgorithm "Insertion sort" insertSort `seqA`
|
||||
demonstrateAlgorithm "Selection sort" selectionSort `seqA`
|
||||
adjustDuration (*3) (demonstrateAlgorithm "Quicksort" quicksort)
|
||||
|
||||
demonstrateAlgorithm :: Text -> (forall s. S s ()) -> Animation
|
||||
|
|
|
|||
Loading…
Reference in a new issue