Add three-eyes cowfile
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
37ee7beb81
commit
b2f81bd664
3 changed files with 34 additions and 0 deletions
|
@ -12,6 +12,7 @@ Cowsay.mutilated
|
|||
Cowsay.skeleton
|
||||
Cowsay.small
|
||||
Cowsay.supermilker
|
||||
Cowsay.three_eyes
|
||||
Cowsay.udder
|
||||
Cowsay.vader
|
||||
Cowsay.www
|
||||
|
|
|
@ -26,6 +26,7 @@ include("cows/small.cow.jl")
|
|||
include("cows/stegosaurus.cow.jl")
|
||||
include("cows/supermilker.cow.jl")
|
||||
include("cows/surgery.cow.jl")
|
||||
include("cows/three-eyes.cow.jl")
|
||||
include("cows/udder.cow.jl")
|
||||
include("cows/vader-koala.cow.jl")
|
||||
include("cows/vader.cow.jl")
|
||||
|
|
32
src/cows/three-eyes.cow.jl
Normal file
32
src/cows/three-eyes.cow.jl
Normal file
|
@ -0,0 +1,32 @@
|
|||
"""
|
||||
function three_eyes()
|
||||
|
||||
A cow with three eyes, brought to you by dpetrou@csua.berkeley.edu
|
||||
|
||||
# Example
|
||||
```jldoctest
|
||||
julia> cowsay("The better to see you with...", cow=Cowsay.three_eyes)
|
||||
_______________________________
|
||||
< The better to see you with... >
|
||||
-------------------------------
|
||||
\\ ^___^
|
||||
\\ (ooo)\\_______
|
||||
(___)\\ )\\/\\
|
||||
||----w |
|
||||
|| ||
|
||||
```
|
||||
|
||||
"""
|
||||
function three_eyes(;eyes="oo", tongue=" ", thoughts="\\")
|
||||
eye = first(eyes)
|
||||
eyes = repeat(eye, 3)
|
||||
the_cow =
|
||||
"""
|
||||
$thoughts ^___^
|
||||
$thoughts ($eyes)\\_______
|
||||
(___)\\ )\\/\\
|
||||
$tongue ||----w |
|
||||
|| ||
|
||||
"""
|
||||
return the_cow
|
||||
end
|
Loading…
Reference in a new issue