diff --git a/examples/example.php b/examples/example.php index 5b3d418..3b9d684 100644 --- a/examples/example.php +++ b/examples/example.php @@ -19,10 +19,13 @@ $spinner7 = new Spinner(fps:5); $spinner8 = new Spinner(fps:10); $spinner9 = new Spinner(fps:20); +$spinner10 = new Spinner(fps:10, style:NoccyLabs\Spinner\Style\SpinningBarStyle::class); + +$spinner11 = new Spinner(fps:10, style:NoccyLabs\Spinner\Style\BrailleBounceStyle::class); // And blast them out every 10ms! while(true) { - echo "\r $spinner1 $spinner2 $spinner3 $spinner4 $spinner5 $spinner6 $spinner7 $spinner8 $spinner9 "; + echo "\r $spinner1 $spinner2 $spinner3 $spinner4 $spinner5 $spinner6 $spinner7 $spinner8 $spinner9 $spinner10 $spinner11 "; usleep(10000); } diff --git a/src/Style/BrailleBounceStyle.php b/src/Style/BrailleBounceStyle.php new file mode 100644 index 0000000..990cac5 --- /dev/null +++ b/src/Style/BrailleBounceStyle.php @@ -0,0 +1,18 @@ +