From 99773d353a4d77a49eebf573711a2060f1ca3318 Mon Sep 17 00:00:00 2001 From: Christopher Vagnetoft Date: Wed, 5 Oct 2022 14:33:06 +0200 Subject: [PATCH] Added a wide braille dot style --- examples/example.php | 4 ++- src/Style/BrailleWideDotsStyle.php | 46 ++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 src/Style/BrailleWideDotsStyle.php diff --git a/examples/example.php b/examples/example.php index 4f9414f..bb1e620 100644 --- a/examples/example.php +++ b/examples/example.php @@ -25,9 +25,11 @@ $spinner11 = new Spinner(fps:10, style:NoccyLabs\Spinner\Style\BrailleBounceStyl $spinner12 = new Spinner(fps:10, style:NoccyLabs\Spinner\Style\BrailleTallDotsStyle::class); +$spinner13 = new Spinner(fps:10, style:NoccyLabs\Spinner\Style\BrailleWideDotsStyle::class); + // And blast them out every 10ms! while(true) { - echo "\r $spinner1 $spinner2 $spinner3 $spinner4 $spinner5 $spinner6 $spinner7 $spinner8 $spinner9 $spinner10 $spinner11 $spinner12 "; + echo "\r $spinner1 $spinner2 $spinner3 $spinner4 $spinner5 $spinner6 $spinner7 $spinner8 $spinner9 $spinner10 $spinner11 $spinner12 $spinner13 "; usleep(10000); } diff --git a/src/Style/BrailleWideDotsStyle.php b/src/Style/BrailleWideDotsStyle.php new file mode 100644 index 0000000..fcf266a --- /dev/null +++ b/src/Style/BrailleWideDotsStyle.php @@ -0,0 +1,46 @@ +