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.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"}] }