From 3d0bfe0eb014ceb51871b4aa8c8908ad96076eaa Mon Sep 17 00:00:00 2001 From: mollusk Date: Tue, 15 Aug 2017 06:31:59 -0700 Subject: [PATCH] Added colors to text --- src/quest-for-sundrop.jl | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/quest-for-sundrop.jl b/src/quest-for-sundrop.jl index b534b73..8fc655b 100755 --- a/src/quest-for-sundrop.jl +++ b/src/quest-for-sundrop.jl @@ -13,16 +13,16 @@ include("../lib/functions.jl") function main() - print("-----------------------------------\n") - print("| The Quest for Sun Drop |\n") - print(" ----------------------------------\n") - print("By: Justin and Lindsay\n\n") + printc(:light_cyan, "-----------------------------------\n") + printc(:light_cyan, "| The Quest for Sun Drop |\n") + printc(:light_cyan, " ----------------------------------\n") + printc(:green, "By: Justin and Lindsay\n\n") - print(intro_text, "\n") - print("Here are your options. \n\n") - print("Option 1 - Go back to sleep. \n") - print("Option 2 - Check the fridge. \n\n") - choice = input("\n Choose an option by pressing its number: ") + printc(:light_yellow, intro_text, "\n\n") + printc(:light_magenta,"\nHere are your options. \n\n") + printc(:light_green, "Option 1 - Go back to sleep. \n") + printc(:light_green, "Option 2 - Check the fridge. \n\n") + choice = input("\nChoose an option by pressing it's number: ") if choice == "1" print(intro_option1outcome_text, "\n") @@ -34,13 +34,13 @@ function main() exit() end - print("Here are your options. \n\n") - print("Option 1 - Drink the 40 oz King Cobra. \n") - print("Option 2 - Drink the 2 liter bottle of Sun Drop. \n") - print("Option 3 - Drink the purple drink in order to indulge your desire to have + printc(:light_yellow, "\nHere are your options. \n\n") + printc(:light_green, "Option 1 - Drink the 40 oz King Cobra. \n") + printc(:light_green, "Option 2 - Drink the 2 liter bottle of Sun Drop. \n") + printc(:light_green, "Option 3 - Drink the purple drink in order to indulge your desire to have your Dave Chappelle moment. \n\n") - choice = input("\n Choose an option by pressing its number: ") + choice = input("\nChoose an option by pressing its number: ") if choice == "1" print(fridge_option1outcome_text, "\n") @@ -57,9 +57,9 @@ function main() exit() end - print("Here are your options. \n \n") - print("Option 1 - Go to your local Safeway. \n") - print("Option 2 - Go to the closest gas station. \n") + printc(:light_yellow, "Here are your options. \n \n") + printc(:light_green, "Option 1 - Go to your local Safeway. \n") + printc(:light_green, "Option 2 - Go to the closest gas station. \n") choice = input("\n Choose an option by pressing its number: ") if choice == "1" @@ -75,9 +75,9 @@ function main() print(wrong_key_error) end - print("Here are your options. \n\n") - print("Option 1 - Attempt to hitch a ride with a trucker. \n") - print("Option 2 - Purchase a plane ticket to Polaski, Tennessee. \n") + printc(:light_yellow, "Here are your options. \n\n") + printc(:light_green, "Option 1 - Attempt to hitch a ride with a trucker. \n") + printc(:light_green, "Option 2 - Purchase a plane ticket to Polaski, Tennessee. \n") choice = input("\n Choose an option by pressing its number: ") if choice == "1"