2021-11-23 17:40:16 +00:00
|
|
|
##
|
|
|
|
## A cowering cow
|
|
|
|
##
|
2021-11-23 18:46:22 +00:00
|
|
|
"""
|
|
|
|
function cower()
|
|
|
|
|
|
|
|
A cowering cow
|
|
|
|
|
|
|
|
# Example
|
|
|
|
|
|
|
|
```jldoctest
|
|
|
|
julia> cowsay("Is it safe to come out yet?", cow=Cowsay.cower)
|
|
|
|
_____________________________
|
|
|
|
< Is it safe to come out yet? >
|
|
|
|
-----------------------------
|
|
|
|
\\
|
|
|
|
\\
|
|
|
|
,__, | |
|
|
|
|
(oo)\\| |___
|
|
|
|
(__)\\| | )\\_
|
|
|
|
| |_w | \\
|
|
|
|
| | || *
|
|
|
|
|
|
|
|
Cower....
|
|
|
|
|
|
|
|
```
|
|
|
|
"""
|
2021-11-23 17:40:16 +00:00
|
|
|
function cower(;eyes="oo", tongue=" ", thoughts="\\")
|
|
|
|
the_cow =
|
|
|
|
"""
|
|
|
|
$thoughts
|
|
|
|
$thoughts
|
|
|
|
,__, | |
|
|
|
|
(oo)\\| |___
|
|
|
|
(__)\\| | )\\_
|
|
|
|
| |_w | \\
|
|
|
|
| | || *
|
|
|
|
|
|
|
|
Cower....
|
|
|
|
"""
|
|
|
|
return the_cow
|
|
|
|
end
|