Skip to content

Final Project as part of Stanford's Code-in-Place 2021: This program changes the colour of the blue-ink to whatever colour the user inputs from a pre-defined array of colours.

Notifications You must be signed in to change notification settings

hkumar30/Ink-Swapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ink-Swapper

This program changes the colour of the blue-ink to whatever colour the user inputs from a pre-defined array of colours.

Sample Input

Sample Image

Outputs

  1. Black

Black

  1. Blue Black

Blue Black

  1. Red

Red

  1. Green

Green

  1. Purple

Purple

Applications:

I have used my Assignment and changed the colour of its contents to black and blue-black ink.

Input:

Input

Output:

  1. Black

Output_BlackInk

  1. Blue-Black

Output_BlueBlackInk

Add your own colours!

Instructions:

  1. Add your colour name using the elif statement inside the ink_swap function.

  2. Add the respective RGB values of your desired colour inside the elif function to add your colour to the database.

  3. Optional: Add the following line — colour != <your colour> on Line 55 to remove the following text in Output:

Your choice is not present in our database.

Switching to Blue-Black Ink instead.

This will completely register your colour in the database.

© Harsh Kumar, 2021
Exclusively for Code-in-Place, Stanford University, CA 94305

About

Final Project as part of Stanford's Code-in-Place 2021: This program changes the colour of the blue-ink to whatever colour the user inputs from a pre-defined array of colours.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages