Ascii art in windows power shellPresentation Transcript
CIS 216Highline Community CollegeDan Morrill
The Soapy Frog image converter http://ps1.soapyfrog.com/wp-content/uploads/2007/01/convert-image2textps1.txt http://ps1.soapyfrog.com/2007/01/07/convert-images-to-text-ascii-art/ Some Free Art to convert http://www.flickr.com/commons I recommend Flickr Commons for free copyright images
Pulled from Flickr Commons
This can be done in any Powershell – might be easierto do this on your desktop ./convert-image2text.ps1 imagefile[ -maxwidth nchars ] [-palette ascii | shade | bw ] CD to the place you put the image and the PS1 file Do a DIR to make sure both are in the same spot (inthis case I am using the desktop) Run ./convert-image2text.ps1 image.jpg (or what everyou named it) *Don’t forget to set your execution policy
Challenge: Can you fix the error?
Using the GRRR Code from Soapy Frog – make it work There are errors in there Use Online Resources Liberally to help you debug thisgame Play the game, get the high score, play your winningsong http://ps1.soapyfrog.com/2007/08/26/grrr-source-code-including-invaders/