We're graduating to a full site soon, and there's only one thing left to do before graduation: pull a senior prank! I think we should do a variation on the classic "fill a hallway with cups of water" gag.
Your program will read in text and output that text, covered in upside-down cups of water. An upside-down cup of water looks like this:
These cups can only be placed in whitespace in the input, and can only be placed so that all three characters of the cup are directly above a non-whitespace character (otherwise the water would spill out!). Cups cannot be stacked on top of other cups. Cups must be placed in every available opening, and it is assumed that every input is surrounded by an infinite field of whitespace.
You may assume that the input is padded to a rectangle with spaces.
We need to pull the prank off quickly and without anyone noticing, so fewest bytes in each language wins.
____________________________________________ / ___ / ___ / ______/ ________/ / /__/ / /__/ / / / /_______ / _______/ _______/ / / //__ / / / / / / /_____/ /___/ / /___/ /___/ /_________/___________/
/~\/~\/~\/~\/~\/~\/~\/~\/~\/~\/~\/~\/~\/~\ ____________________________________________ / ___ / ___ / ______/ ________/ / /__//~\/ /__//~\/ / / /_______ / _______/ _______/ //~\ / //__ / //~\/ //~\/ //~\/_____//~\/___//~\/ /___/ /___/ /_________/___________/
L LOL ROFL:ROFL:LOL:ROFL:ROFL L\\ ____I____ ======== | |[\ \___O==___) ___I_I__/
L /~\/~\/~\/~\/~\/~\/~\ LOL ROFL:ROFL:LOL:ROFL:ROFL L\\/~\/~\ ____I____ ========/~\ | |[\ \___O==___) ___I_I__/