Add flaming-sheep cowfile

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
Thomas A. Christensen II 2021-11-23 15:47:53 -06:00
parent e468783238
commit ce2fb5e0ab
Signed by: millironx
GPG key ID: 139C07724802BC5D
3 changed files with 45 additions and 0 deletions

View file

@ -26,5 +26,6 @@ Cowsay.bunny
Cowsay.dragon_and_cow Cowsay.dragon_and_cow
Cowsay.dragon Cowsay.dragon
Cowsay.elephant_in_snake Cowsay.elephant_in_snake
Cowsay.flaming_sheep
Cowsay.vader_koala Cowsay.vader_koala
``` ```

View file

@ -10,6 +10,7 @@ include("cows/dragon-and-cow.cow.jl")
include("cows/dragon.cow.jl") include("cows/dragon.cow.jl")
include("cows/elephant-in-snake.cow.jl") include("cows/elephant-in-snake.cow.jl")
include("cows/elephant.cow.jl") include("cows/elephant.cow.jl")
include("cows/flaming-sheep.cow.jl")
include("cows/udder.cow.jl") include("cows/udder.cow.jl")
include("cows/vader-koala.cow.jl") include("cows/vader-koala.cow.jl")
include("cows/vader.cow.jl") include("cows/vader.cow.jl")

View file

@ -0,0 +1,43 @@
##
## The flaming sheep, contributed by Geordan Rosario (geordan@csua.berkeley.edu)
##
"""
function flaming_sheep()
The flaming sheep, contributed by Geordan Rosario (geordan@csua.berkeley.edu)
# Example
```jldoctest
julia> cowsay("Baaahhh!", cow=Cowsay.flaming_sheep)
__________
< Baaahhh! >
----------
\\ . . .
\\ . . . ` ,
\\ .; . : .' : : : .
\\ i..`: i` i.i.,i i .
\\ `,--.|i |i|ii|ii|i:
UooU\\.'@@@@@@`.||'
\\__/(@@@@@@@@@@)'
(@@@@@@@@)
`YY~~~~YY'
|| ||
```
"""
function flaming_sheep(;eyes="oo", tongue=" ", thoughts="\\")
the_cow =
"""
$thoughts . . .
$thoughts . . . ` ,
$thoughts .; . : .' : : : .
$thoughts i..`: i` i.i.,i i .
$thoughts `,--.|i |i|ii|ii|i:
U$(eyes)U\\.'@@@@@@`.||'
\\__/(@@@@@@@@@@)'
(@@@@@@@@)
`YY~~~~YY'
|| ||
"""
return the_cow
end