diff --git a/dev/cows/index.html b/dev/cows/index.html index a6ac517..6e3a8e3 100644 --- a/dev/cows/index.html +++ b/dev/cows/index.html @@ -9,7 +9,7 @@ ||----w | || || -source
Cowsay.cowerFunction
function cower()

A cowering cow

Example

julia> cowsay("Is it safe to come out yet?", cow=Cowsay.cower)
+
source
Cowsay.cowerFunction
function cower()

A cowering cow

Example

julia> cowsay("Is it safe to come out yet?", cow=Cowsay.cower)
  _____________________________
 < Is it safe to come out yet? >
  -----------------------------
@@ -22,7 +22,7 @@
              |    |  ||   *
 
              Cower....
-
source
Cowsay.udderFunction
function udder()

The cow from a file called cow-n-horn, artist unknown.

Example

julia> cowsay("Milking time!", cow=Cowsay.udder)
+
source
Cowsay.udderFunction
function udder()

The cow from a file called cow-n-horn, artist unknown.

Example

julia> cowsay("Milking time!", cow=Cowsay.udder)
  _______________
 < Milking time! >
  ---------------
@@ -34,7 +34,7 @@
            |          |\
            ||---(  )_|| *
            ||    UU  ||
-           ==        ==
source
Cowsay.vaderFunction
function vader()

Cowth Vader, from geordan@csua.berkeley.edu

Example

julia> cowsay("Luke, I am your father!", cow=Cowsay.vader)
+           ==        ==
source
Cowsay.vaderFunction
function vader()

Cowth Vader, from geordan@csua.berkeley.edu

Example

julia> cowsay("Luke, I am your father!", cow=Cowsay.vader)
  _________________________
 < Luke, I am your father! >
  -------------------------
@@ -45,7 +45,7 @@
                 ||-----w||
                 ||      ||
 
-               Cowth Vader
source
Cowsay.wwwFunction
function www()

A cow wadvertising the World Wide Web, from lim@csua.berkeley.edu

Example

julia> cowsay("My favorite site is MooTube", cow=Cowsay.www)
+               Cowth Vader
source
Cowsay.wwwFunction
function www()

A cow wadvertising the World Wide Web, from lim@csua.berkeley.edu

Example

julia> cowsay("My favorite site is MooTube", cow=Cowsay.www)
  _____________________________
 < My favorite site is MooTube >
  -----------------------------
@@ -53,7 +53,7 @@
          \  (oo)\_______
             (__)\       )\/\
                 ||--WWW |
-                ||     ||
source

Mascots

Cowsay.blowfishFunction
function blowfish()

A blowfish.

julia> cowsay("Bloop, bloop", cow=Cowsay.blowfish)
+                ||     ||
source

Mascots

Cowsay.blowfishFunction
function blowfish()

A blowfish.

julia> cowsay("Bloop, bloop", cow=Cowsay.blowfish)
  ______________
 < Bloop, bloop >
  --------------
@@ -82,7 +82,7 @@
         `.\
 
 
-
source
Cowsay.elephantFunction
function elephant()

An elephant out and about

Example

julia> cowsay("Toot!", cow=Cowsay.elephant)
+
source
Cowsay.elephantFunction
function elephant()

An elephant out and about

Example

julia> cowsay("Toot!", cow=Cowsay.elephant)
  _______
 < Toot! >
  -------
@@ -95,7 +95,7 @@
         |  | |  |
         |   o   |
         | |   | |
-        |m|   |m|
source

Other

Cowsay.bunnyFunction
function bunny()

A cute little wabbit

Example

julia> cowsay("Look at that tortoise way off in the distance.", cow=Cowsay.bunny)
+        |m|   |m|
source

Other

Cowsay.bunnyFunction
function bunny()

A cute little wabbit

Example

julia> cowsay("Look at that tortoise way off in the distance.", cow=Cowsay.bunny)
  ________________________________________________
 < Look at that tortoise way off in the distance. >
  ------------------------------------------------
@@ -104,7 +104,7 @@
         \ /\
         ( )
       .( o ).
-
source
Cowsay.dragon_and_cowFunction
function dragon_and_cow()

A dragon smiting a cow, possible credit to kube@csua.berkeley.edu

Example

julia> cowsay("Roast beef: it's what's for dinner", cow=Cowsay.dragon_and_cow)
+
source
Cowsay.dragon_and_cowFunction
function dragon_and_cow()

A dragon smiting a cow, possible credit to kube@csua.berkeley.edu

Example

julia> cowsay("Roast beef: it's what's for dinner", cow=Cowsay.dragon_and_cow)
  ____________________________________
 < Roast beef: it's what's for dinner >
  ------------------------------------
@@ -123,7 +123,7 @@
              \____(oo)           *.   }            {                   /
              (    (--)          .----~-.\        \-`                 .~
              //__\\  \__ Ack!   ///.----..<        \             _ -~
-            //    \\               ///-._ _ _ _ _ _ _{^ - - - - ~
source
Cowsay.dragonFunction
function dragon()

The Whitespace Dragon

Example

julia> cowsay("Roar!", cow=Cowsay.dragon)
+            //    \\               ///-._ _ _ _ _ _ _{^ - - - - ~
source
Cowsay.dragonFunction
function dragon()

The Whitespace Dragon

Example

julia> cowsay("Roar!", cow=Cowsay.dragon)
  _______
 < Roar! >
  -------
@@ -143,7 +143,7 @@
              ///.----..>        \             _ -~             `.  ^-`  ^-_
                ///-._ _ _ _ _ _ _}^ - - - - ~                     ~-- ,.-~
                                                                   /.-~
-
source
Cowsay.elephant_in_snakeFunction
function elephant_in_snake()

Do we need to explain this?

Example

julia> cowsay("Help!", cow=Cowsay.elephant_in_snake)
+
source
Cowsay.elephant_in_snakeFunction
function elephant_in_snake()

Do we need to explain this?

Example

julia> cowsay("Help!", cow=Cowsay.elephant_in_snake)
  _______
 < Help! >
  -------
@@ -156,7 +156,7 @@
 ..............................
 
 Elephant inside ASCII snake
-
source
Cowsay.vader_koalaFunction
function vader_koala

Another canonical koala?

Example

julia> cowsay("Luke, you are my joey!", cow=Cowsay.vader_koala)
+
source
Cowsay.vader_koalaFunction
function vader_koala

Another canonical koala?

Example

julia> cowsay("Luke, you are my joey!", cow=Cowsay.vader_koala)
  ________________________
 < Luke, you are my joey! >
  ------------------------
@@ -170,4 +170,4 @@ Elephant inside ASCII snake
 
      Darth
      Vader
-     koala
source
+ koalasource diff --git a/dev/index.html b/dev/index.html index 5f72156..386967c 100644 --- a/dev/index.html +++ b/dev/index.html @@ -1,2 +1,2 @@ -Home · cowsay.jl
+Home · cowsay.jl

Cowsay.jl

A Julia package that lets you use cowsay in your Julia programs!

Usage

Cowsay.cowsayFunction
cowsay(message::AbstractString; kwargs...)

Print an ASCII picture of a cow saying message

Arguments

  • message::AbstractString: Tell the cow what to say

Keywords

  • cow=default: Specify a particular function handle to print the ASCII art. See below for more details on what constitutes a valid function handle.
  • eyes::AbstractString="oo": A two-character string to be drawn in for the eyes. Not all cowfiles support this, though.
  • tongue::AbstractString=" ": A two-character string to be drawn in for the tongue. Not all cowfiles support this.

Making a cow function

The original cowsay used Perl scripts (called 'cowfiles') to allow for creating more ASCII cow art. Cowsay.jl uses Julia functions, instead. In order to be usable by Cowsay.cowsay, a cow function must

  1. Take the correct arguments

    The function must take three (3) keyword arguments of the form

    • eyes::AbstractString="oo"
    • tongue::AbstractString=" "
    • thoughts::AbstractString="\"

    When drawing the cow artwork, you may then use the variables eyes in place of the eyes, tongue in place of the tongue, and thoughts in place of the speech ballon trail. Use of these variables in constructing the cow is optional (but makes the use of your cow function far more fun), but all three arguments must be present in the signature, regardless.

  2. Return a string

    The cow artwork must be returned from the function as a string. This is distinctly different from how the original cowsay modified the $the_cow variable.

Helpful hints for making cow functions

  1. Include one function per file, with the extension .cow.jl
  2. Do not indent within a .cow.jl file to better see the artwork
  3. Make use of string literals (""") and string interpolation ($) to build the cow art
  4. Be sure to escape backslashes (\) and dollar signs ($) within your artwork
  5. Split the eyes variable to get individual left- and right-eye when creating large cow functions
  6. Have fun!
source
diff --git a/dev/search/index.html b/dev/search/index.html index 3ebec76..f439d19 100644 --- a/dev/search/index.html +++ b/dev/search/index.html @@ -1,2 +1,2 @@ -Search · cowsay.jl

Loading search...

    +Search · cowsay.jl

    Loading search...

      diff --git a/dev/search_index.js b/dev/search_index.js index 5254874..2797c7a 100644 --- a/dev/search_index.js +++ b/dev/search_index.js @@ -1,3 +1,3 @@ var documenterSearchIndex = {"docs": -[{"location":"cows/#Cows","page":"Available Cowfiles","title":"Cows","text":"","category":"section"},{"location":"cows/","page":"Available Cowfiles","title":"Available Cowfiles","text":"Examples of all the cowfiles available.","category":"page"},{"location":"cows/#Bovine","page":"Available Cowfiles","title":"Bovine","text":"","category":"section"},{"location":"cows/","page":"Available Cowfiles","title":"Available Cowfiles","text":"Cowsay.default\nCowsay.cower\nCowsay.udder\nCowsay.vader\nCowsay.www","category":"page"},{"location":"cows/#Cowsay.default","page":"Available Cowfiles","title":"Cowsay.default","text":"function default()\n\nThe original cowfile\n\nExample\n\njulia> cowsay(\"Moo\", cow=Cowsay.default)\n _____\n< Moo >\n -----\n \\ ^__^\n \\ (oo)\\_______\n (__)\\ )\\/\\\n ||----w |\n || ||\n\n\n\n\n\n\n\n","category":"function"},{"location":"cows/#Cowsay.cower","page":"Available Cowfiles","title":"Cowsay.cower","text":"function cower()\n\nA cowering cow\n\nExample\n\njulia> cowsay(\"Is it safe to come out yet?\", cow=Cowsay.cower)\n _____________________________\n< Is it safe to come out yet? >\n -----------------------------\n \\\n \\\n ,__, | |\n (oo)\\| |___\n (__)\\| | )\\_\n | |_w | \\\n | | || *\n\n Cower....\n\n\n\n\n\n\n","category":"function"},{"location":"cows/#Cowsay.udder","page":"Available Cowfiles","title":"Cowsay.udder","text":"function udder()\n\nThe cow from a file called cow-n-horn, artist unknown.\n\nExample\n\njulia> cowsay(\"Milking time!\", cow=Cowsay.udder)\n _______________\n< Milking time! >\n ---------------\n \\\n \\ (__)\n o o\\\n ('') \\---------\n \\ \\\n | |\\\n ||---( )_|| *\n || UU ||\n == ==\n\n\n\n\n\n","category":"function"},{"location":"cows/#Cowsay.vader","page":"Available Cowfiles","title":"Cowsay.vader","text":"function vader()\n\nCowth Vader, from geordan@csua.berkeley.edu\n\nExample\n\njulia> cowsay(\"Luke, I am your father!\", cow=Cowsay.vader)\n _________________________\n< Luke, I am your father! >\n -------------------------\n \\ ,-^-.\n \\ !oYo!\n \\ /./=\\.\\______\n ## )\\/\\\n ||-----w||\n || ||\n\n Cowth Vader\n\n\n\n\n\n","category":"function"},{"location":"cows/#Cowsay.www","page":"Available Cowfiles","title":"Cowsay.www","text":"function www()\n\nA cow wadvertising the World Wide Web, from lim@csua.berkeley.edu\n\nExample\n\njulia> cowsay(\"My favorite site is MooTube\", cow=Cowsay.www)\n _____________________________\n< My favorite site is MooTube >\n -----------------------------\n \\ ^__^\n \\ (oo)\\_______\n (__)\\ )\\/\\\n ||--WWW |\n || ||\n\n\n\n\n\n","category":"function"},{"location":"cows/#Mascots","page":"Available Cowfiles","title":"Mascots","text":"","category":"section"},{"location":"cows/","page":"Available Cowfiles","title":"Available Cowfiles","text":"Cowsay.blowfish\nCowsay.elephant","category":"page"},{"location":"cows/#Cowsay.blowfish","page":"Available Cowfiles","title":"Cowsay.blowfish","text":"function blowfish()\n\nA blowfish.\n\njulia> cowsay(\"Bloop, bloop\", cow=Cowsay.blowfish)\n ______________\n< Bloop, bloop >\n --------------\n \\\n \\\n | .\n . |L /|\n _ . |\\ _| \\--+._/| .\n / ||\\| Y J ) / |/| ./\n J |)'( | ` F`.'/\n -<| F __ .-<\n | / .-'. `. /-. L___\n J \\ < \\ | | O\\|.-'\n _J \\ .- \\/ O | | \\ |F\n '-F -<_. \\ .-' `-' L__\n __J _ _. >-' )._. |-'\n `-|.' /_. \\_| F\n /.- . _.<\n /' /.' .' `\\\n /L /' |/ _.-'-\\\n /'J ___.---'\\|\n |\\ .--' V | `. `\n |/`. `-. `._)\n / .-.\\\n VK \\ ( `\\\n `.\\\n\n\n\n\n\n\n\n\n","category":"function"},{"location":"cows/#Cowsay.elephant","page":"Available Cowfiles","title":"Cowsay.elephant","text":"function elephant()\n\nAn elephant out and about\n\nExample\n\njulia> cowsay(\"Toot!\", cow=Cowsay.elephant)\n _______\n< Toot! >\n -------\n \\ /\\ ___ /\\\n \\ // \\/ \\/ \\\\\n (( O O ))\n \\\\ / \\ //\n \\/ | | \\/\n | | | |\n | | | |\n | o |\n | | | |\n |m| |m|\n\n\n\n\n\n","category":"function"},{"location":"cows/#Other","page":"Available Cowfiles","title":"Other","text":"","category":"section"},{"location":"cows/","page":"Available Cowfiles","title":"Available Cowfiles","text":"Cowsay.bunny\nCowsay.dragon_and_cow\nCowsay.dragon\nCowsay.elephant_in_snake\nCowsay.vader_koala","category":"page"},{"location":"cows/#Cowsay.bunny","page":"Available Cowfiles","title":"Cowsay.bunny","text":"function bunny()\n\nA cute little wabbit\n\nExample\n\njulia> cowsay(\"Look at that tortoise way off in the distance.\", cow=Cowsay.bunny)\n ________________________________________________\n< Look at that tortoise way off in the distance. >\n ------------------------------------------------\n \\\n \\ \\\n \\ /\\\n ( )\n .( o ).\n\n\n\n\n\n\n","category":"function"},{"location":"cows/#Cowsay.dragon_and_cow","page":"Available Cowfiles","title":"Cowsay.dragon_and_cow","text":"function dragon_and_cow()\n\nA dragon smiting a cow, possible credit to kube@csua.berkeley.edu\n\nExample\n\njulia> cowsay(\"Roast beef: it's what's for dinner\", cow=Cowsay.dragon_and_cow)\n ____________________________________\n< Roast beef: it's what's for dinner >\n ------------------------------------\n \\ ^ /^\n \\ / \\ // \\\n \\ |\\___/| / \\// .\\\n \\ /O O \\__ / // | \\ \\ *----*\n / / \\/_/ // | \\ \\ \\ |\n @___@` \\/_ // | \\ \\ \\/\\ \\\n 0/0/| \\/_ // | \\ \\ \\ \\\n 0/0/0/0/| \\/// | \\ \\ | |\n 0/0/0/0/0/_|_ / ( // | \\ _\\ | /\n 0/0/0/0/0/0/`/,_ _ _/ ) ; -. | _ _\\.-~ / /\n ,-} _ *-.|.-~-. .~ ~\n \\ \\__/ `/\\ / ~-. _ .-~ /\n \\____(oo) *. } { /\n ( (--) .----~-.\\ \\-` .~\n //__\\\\ \\__ Ack! ///.----..< \\ _ -~\n // \\\\ ///-._ _ _ _ _ _ _{^ - - - - ~\n\n\n\n\n\n","category":"function"},{"location":"cows/#Cowsay.dragon","page":"Available Cowfiles","title":"Cowsay.dragon","text":"function dragon()\n\nThe Whitespace Dragon\n\nExample\n\njulia> cowsay(\"Roar!\", cow=Cowsay.dragon)\n _______\n< Roar! >\n -------\n \\ / \\ //\\\n \\ |\\___/| / \\// \\\\\n /0 0 \\__ / // | \\ \\\n / / \\/_/ // | \\ \\\n @_^_@'/ \\/_ // | \\ \\\n //_^_/ \\/_ // | \\ \\\n ( //) | \\/// | \\ \\\n ( / /) _|_ / ) // | \\ _\\\n ( // /) '/,_ _ _/ ( ; -. | _ _\\.-~ .-~~~^-.\n (( / / )) ,-{ _ `-.|.-~-. .~ `.\n (( // / )) '/\\ / ~-. _ .-~ .-~^-. \\\n (( /// )) `. { } / \\ \\\n (( / )) .----~-.\\ \\-' .~ \\ `. \\^-.\n ///.----..> \\ _ -~ `. ^-` ^-_\n ///-._ _ _ _ _ _ _}^ - - - - ~ ~-- ,.-~\n /.-~\n\n\n\n\n\n\n","category":"function"},{"location":"cows/#Cowsay.elephant_in_snake","page":"Available Cowfiles","title":"Cowsay.elephant_in_snake","text":"function elephant_in_snake()\n\nDo we need to explain this?\n\nExample\n\njulia> cowsay(\"Help!\", cow=Cowsay.elephant_in_snake)\n _______\n< Help! >\n -------\n \\\n \\ ....\n ........ .\n . .\n . .\n......... .......\n..............................\n\nElephant inside ASCII snake\n\n\n\n\n\n\n","category":"function"},{"location":"cows/#Cowsay.vader_koala","page":"Available Cowfiles","title":"Cowsay.vader_koala","text":"function vader_koala\n\nAnother canonical koala?\n\nExample\n\njulia> cowsay(\"Luke, you are my joey!\", cow=Cowsay.vader_koala)\n ________________________\n< Luke, you are my joey! >\n ------------------------\n \\\n \\ .\n .---. //\n Y|o o|Y//\n /_(i=i)K/\n ~()~*~()~\n (_)-(_)\n\n Darth\n Vader\n koala\n\n\n\n\n\n","category":"function"},{"location":"","page":"Home","title":"Home","text":"CurrentModule = Cowsay","category":"page"},{"location":"#cowsay","page":"Home","title":"cowsay","text":"","category":"section"},{"location":"","page":"Home","title":"Home","text":"Documentation for cowsay.","category":"page"},{"location":"","page":"Home","title":"Home","text":"","category":"page"}] +[{"location":"cows/#Cows","page":"Available Cowfiles","title":"Cows","text":"","category":"section"},{"location":"cows/","page":"Available Cowfiles","title":"Available Cowfiles","text":"Examples of all the cowfiles available.","category":"page"},{"location":"cows/#Bovine","page":"Available Cowfiles","title":"Bovine","text":"","category":"section"},{"location":"cows/","page":"Available Cowfiles","title":"Available Cowfiles","text":"Cowsay.default\nCowsay.cower\nCowsay.udder\nCowsay.vader\nCowsay.www","category":"page"},{"location":"cows/#Cowsay.default","page":"Available Cowfiles","title":"Cowsay.default","text":"function default()\n\nThe original cowfile\n\nExample\n\njulia> cowsay(\"Moo\", cow=Cowsay.default)\n _____\n< Moo >\n -----\n \\ ^__^\n \\ (oo)\\_______\n (__)\\ )\\/\\\n ||----w |\n || ||\n\n\n\n\n\n\n\n","category":"function"},{"location":"cows/#Cowsay.cower","page":"Available Cowfiles","title":"Cowsay.cower","text":"function cower()\n\nA cowering cow\n\nExample\n\njulia> cowsay(\"Is it safe to come out yet?\", cow=Cowsay.cower)\n _____________________________\n< Is it safe to come out yet? >\n -----------------------------\n \\\n \\\n ,__, | |\n (oo)\\| |___\n (__)\\| | )\\_\n | |_w | \\\n | | || *\n\n Cower....\n\n\n\n\n\n\n","category":"function"},{"location":"cows/#Cowsay.udder","page":"Available Cowfiles","title":"Cowsay.udder","text":"function udder()\n\nThe cow from a file called cow-n-horn, artist unknown.\n\nExample\n\njulia> cowsay(\"Milking time!\", cow=Cowsay.udder)\n _______________\n< Milking time! >\n ---------------\n \\\n \\ (__)\n o o\\\n ('') \\---------\n \\ \\\n | |\\\n ||---( )_|| *\n || UU ||\n == ==\n\n\n\n\n\n","category":"function"},{"location":"cows/#Cowsay.vader","page":"Available Cowfiles","title":"Cowsay.vader","text":"function vader()\n\nCowth Vader, from geordan@csua.berkeley.edu\n\nExample\n\njulia> cowsay(\"Luke, I am your father!\", cow=Cowsay.vader)\n _________________________\n< Luke, I am your father! >\n -------------------------\n \\ ,-^-.\n \\ !oYo!\n \\ /./=\\.\\______\n ## )\\/\\\n ||-----w||\n || ||\n\n Cowth Vader\n\n\n\n\n\n","category":"function"},{"location":"cows/#Cowsay.www","page":"Available Cowfiles","title":"Cowsay.www","text":"function www()\n\nA cow wadvertising the World Wide Web, from lim@csua.berkeley.edu\n\nExample\n\njulia> cowsay(\"My favorite site is MooTube\", cow=Cowsay.www)\n _____________________________\n< My favorite site is MooTube >\n -----------------------------\n \\ ^__^\n \\ (oo)\\_______\n (__)\\ )\\/\\\n ||--WWW |\n || ||\n\n\n\n\n\n","category":"function"},{"location":"cows/#Mascots","page":"Available Cowfiles","title":"Mascots","text":"","category":"section"},{"location":"cows/","page":"Available Cowfiles","title":"Available Cowfiles","text":"Cowsay.blowfish\nCowsay.elephant","category":"page"},{"location":"cows/#Cowsay.blowfish","page":"Available Cowfiles","title":"Cowsay.blowfish","text":"function blowfish()\n\nA blowfish.\n\njulia> cowsay(\"Bloop, bloop\", cow=Cowsay.blowfish)\n ______________\n< Bloop, bloop >\n --------------\n \\\n \\\n | .\n . |L /|\n _ . |\\ _| \\--+._/| .\n / ||\\| Y J ) / |/| ./\n J |)'( | ` F`.'/\n -<| F __ .-<\n | / .-'. `. /-. L___\n J \\ < \\ | | O\\|.-'\n _J \\ .- \\/ O | | \\ |F\n '-F -<_. \\ .-' `-' L__\n __J _ _. >-' )._. |-'\n `-|.' /_. \\_| F\n /.- . _.<\n /' /.' .' `\\\n /L /' |/ _.-'-\\\n /'J ___.---'\\|\n |\\ .--' V | `. `\n |/`. `-. `._)\n / .-.\\\n VK \\ ( `\\\n `.\\\n\n\n\n\n\n\n\n\n","category":"function"},{"location":"cows/#Cowsay.elephant","page":"Available Cowfiles","title":"Cowsay.elephant","text":"function elephant()\n\nAn elephant out and about\n\nExample\n\njulia> cowsay(\"Toot!\", cow=Cowsay.elephant)\n _______\n< Toot! >\n -------\n \\ /\\ ___ /\\\n \\ // \\/ \\/ \\\\\n (( O O ))\n \\\\ / \\ //\n \\/ | | \\/\n | | | |\n | | | |\n | o |\n | | | |\n |m| |m|\n\n\n\n\n\n","category":"function"},{"location":"cows/#Other","page":"Available Cowfiles","title":"Other","text":"","category":"section"},{"location":"cows/","page":"Available Cowfiles","title":"Available Cowfiles","text":"Cowsay.bunny\nCowsay.dragon_and_cow\nCowsay.dragon\nCowsay.elephant_in_snake\nCowsay.vader_koala","category":"page"},{"location":"cows/#Cowsay.bunny","page":"Available Cowfiles","title":"Cowsay.bunny","text":"function bunny()\n\nA cute little wabbit\n\nExample\n\njulia> cowsay(\"Look at that tortoise way off in the distance.\", cow=Cowsay.bunny)\n ________________________________________________\n< Look at that tortoise way off in the distance. >\n ------------------------------------------------\n \\\n \\ \\\n \\ /\\\n ( )\n .( o ).\n\n\n\n\n\n\n","category":"function"},{"location":"cows/#Cowsay.dragon_and_cow","page":"Available Cowfiles","title":"Cowsay.dragon_and_cow","text":"function dragon_and_cow()\n\nA dragon smiting a cow, possible credit to kube@csua.berkeley.edu\n\nExample\n\njulia> cowsay(\"Roast beef: it's what's for dinner\", cow=Cowsay.dragon_and_cow)\n ____________________________________\n< Roast beef: it's what's for dinner >\n ------------------------------------\n \\ ^ /^\n \\ / \\ // \\\n \\ |\\___/| / \\// .\\\n \\ /O O \\__ / // | \\ \\ *----*\n / / \\/_/ // | \\ \\ \\ |\n @___@` \\/_ // | \\ \\ \\/\\ \\\n 0/0/| \\/_ // | \\ \\ \\ \\\n 0/0/0/0/| \\/// | \\ \\ | |\n 0/0/0/0/0/_|_ / ( // | \\ _\\ | /\n 0/0/0/0/0/0/`/,_ _ _/ ) ; -. | _ _\\.-~ / /\n ,-} _ *-.|.-~-. .~ ~\n \\ \\__/ `/\\ / ~-. _ .-~ /\n \\____(oo) *. } { /\n ( (--) .----~-.\\ \\-` .~\n //__\\\\ \\__ Ack! ///.----..< \\ _ -~\n // \\\\ ///-._ _ _ _ _ _ _{^ - - - - ~\n\n\n\n\n\n","category":"function"},{"location":"cows/#Cowsay.dragon","page":"Available Cowfiles","title":"Cowsay.dragon","text":"function dragon()\n\nThe Whitespace Dragon\n\nExample\n\njulia> cowsay(\"Roar!\", cow=Cowsay.dragon)\n _______\n< Roar! >\n -------\n \\ / \\ //\\\n \\ |\\___/| / \\// \\\\\n /0 0 \\__ / // | \\ \\\n / / \\/_/ // | \\ \\\n @_^_@'/ \\/_ // | \\ \\\n //_^_/ \\/_ // | \\ \\\n ( //) | \\/// | \\ \\\n ( / /) _|_ / ) // | \\ _\\\n ( // /) '/,_ _ _/ ( ; -. | _ _\\.-~ .-~~~^-.\n (( / / )) ,-{ _ `-.|.-~-. .~ `.\n (( // / )) '/\\ / ~-. _ .-~ .-~^-. \\\n (( /// )) `. { } / \\ \\\n (( / )) .----~-.\\ \\-' .~ \\ `. \\^-.\n ///.----..> \\ _ -~ `. ^-` ^-_\n ///-._ _ _ _ _ _ _}^ - - - - ~ ~-- ,.-~\n /.-~\n\n\n\n\n\n\n","category":"function"},{"location":"cows/#Cowsay.elephant_in_snake","page":"Available Cowfiles","title":"Cowsay.elephant_in_snake","text":"function elephant_in_snake()\n\nDo we need to explain this?\n\nExample\n\njulia> cowsay(\"Help!\", cow=Cowsay.elephant_in_snake)\n _______\n< Help! >\n -------\n \\\n \\ ....\n ........ .\n . .\n . .\n......... .......\n..............................\n\nElephant inside ASCII snake\n\n\n\n\n\n\n","category":"function"},{"location":"cows/#Cowsay.vader_koala","page":"Available Cowfiles","title":"Cowsay.vader_koala","text":"function vader_koala\n\nAnother canonical koala?\n\nExample\n\njulia> cowsay(\"Luke, you are my joey!\", cow=Cowsay.vader_koala)\n ________________________\n< Luke, you are my joey! >\n ------------------------\n \\\n \\ .\n .---. //\n Y|o o|Y//\n /_(i=i)K/\n ~()~*~()~\n (_)-(_)\n\n Darth\n Vader\n koala\n\n\n\n\n\n","category":"function"},{"location":"","page":"Home","title":"Home","text":"CurrentModule = Cowsay","category":"page"},{"location":"#Cowsay.jl","page":"Home","title":"Cowsay.jl","text":"","category":"section"},{"location":"","page":"Home","title":"Home","text":"A Julia package that lets you use cowsay in your Julia programs!","category":"page"},{"location":"#Usage","page":"Home","title":"Usage","text":"","category":"section"},{"location":"","page":"Home","title":"Home","text":"Cowsay.cowsay","category":"page"},{"location":"#Cowsay.cowsay","page":"Home","title":"Cowsay.cowsay","text":"cowsay(message::AbstractString; kwargs...)\n\nPrint an ASCII picture of a cow saying message\n\nArguments\n\nmessage::AbstractString: Tell the cow what to say\n\nKeywords\n\ncow=default: Specify a particular function handle to print the ASCII art. See below for more details on what constitutes a valid function handle.\neyes::AbstractString=\"oo\": A two-character string to be drawn in for the eyes. Not all cowfiles support this, though.\ntongue::AbstractString=\" \": A two-character string to be drawn in for the tongue. Not all cowfiles support this.\n\n\n\nMaking a cow function\n\nThe original cowsay used Perl scripts (called 'cowfiles') to allow for creating more ASCII cow art. Cowsay.jl uses Julia functions, instead. In order to be usable by Cowsay.cowsay, a cow function must\n\nTake the correct arguments\nThe function must take three (3) keyword arguments of the form\neyes::AbstractString=\"oo\"\ntongue::AbstractString=\" \"\nthoughts::AbstractString=\"\\\"\nWhen drawing the cow artwork, you may then use the variables eyes in place of the eyes, tongue in place of the tongue, and thoughts in place of the speech ballon trail. Use of these variables in constructing the cow is optional (but makes the use of your cow function far more fun), but all three arguments must be present in the signature, regardless.\nReturn a string\nThe cow artwork must be returned from the function as a string. This is distinctly different from how the original cowsay modified the $the_cow variable.\n\nHelpful hints for making cow functions\n\nInclude one function per file, with the extension .cow.jl\nDo not indent within a .cow.jl file to better see the artwork\nMake use of string literals (\"\"\") and string interpolation ($) to build the cow art\nBe sure to escape backslashes (\\) and dollar signs ($) within your artwork\nSplit the eyes variable to get individual left- and right-eye when creating large cow functions\nHave fun!\n\n\n\n\n\n","category":"function"}] }