Skip to content

Commit 2b84886

Browse files
committed
🎨 Switch demo to ASCII boxes, as the default font used by VHS doesn't render emoji boxed very nicely
1 parent ee8fbc9 commit 2b84886

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ From [`demo.clj`](https://github.com/pmonks/spinner/blob/dev/demo.clj):
7474

7575
(println "And now something countably slow is happening...")
7676
(let [a (atom 0)]
77-
(pd/animate! a :opts {:total 1000000 :redraw-rate 60 :style (:emoji-boxes pd/styles)}
77+
(pd/animate! a :opts {:total 1000000
78+
:redraw-rate 60
79+
:style (:ascii-boxes pd/styles)} ; :emoji-boxes is also fun to try
7880
(run! (fn [_] (Thread/sleep 0 10) (swap! a inc)) (range 1000000)))) ; Count up to a million, slowly
7981
(println)
8082
```

demo.clj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
(println "And now something countably slow is happening...")
1616
(let [a (atom 0)]
17-
(pd/animate! a :opts {:total 1000000 :redraw-rate 60 :style (:emoji-boxes pd/styles)}
17+
(pd/animate! a :opts {:total 1000000
18+
:redraw-rate 60
19+
:style (:ascii-boxes pd/styles)} ; :emoji-boxes is also fun to try
1820
(run! (fn [_] (Thread/sleep 0 10) (swap! a inc)) (range 1000000)))) ; Count up to a million, slowly
1921
(println)
20-
(flush)

spinner-demo.gif

26.5 KB
Loading

spinner-demo.tape

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ Type "clojure -M demo.clj"
55
Sleep 250ms
66
Enter
77
Wait@90s
8+
Sleep 50ms

0 commit comments

Comments
 (0)