![]() I've seen lots of mixed feedback but I enjoyed it. Movie with the kids yesterday and this character was hilarious - a bad role model but hilarious. I tried to cut as much as I could out of this plain JS processing a hex string, but given as it's my first try, this is how far I got using only what I know.Before anyone comes for me I'm being sarcastic □ saw Super Mario Bros. Now let's do that for the longer Unicode string. And then we convert that number to another base, passed in as the second argument #2. Those can be interpreted as digits of a base 65536 number. Here is what it looks like in Mathematica:įirst we define a function f that turns Unicode strings (passed in as the first argument #) into lists of integers. Right now I cannot be bothered to fix the explanation and screenshot below, so I'm leaving you here with the original base-5 version of my encoding the pixels in Unicode characters (yay for counting by characters!). ![]() Anyway, the above is 2 characters shorter than my former version, and I got those to characters from using base-4 instead of base-5 to encode the colour palette indices. In Mathematica, I can actually embed the character literally, although that leads to all sorts of ugliness when copying things around. Mathematica, 412 292 252 212 163 148 143 141 characters uses caret notation ^A for the control character at code point 1. Trick used: save the compressed PNG file as an HTML file, and add at the end ‰PNG Trick used: save the compressed GIF file as an HTML file, and add at the end Shortest answer using some kind of hardcoded image: (entries using this trick will be rank separately) Standard loopholes apply (especially, no network connexion allowed), but hardcoding and displaying an image file in your program is allowed. Shortest program (in number of characters) wins! You can also output ASCII art or HTML art, but using the right colors.) (EDIT: the displayed image can be scaled up if your language can't do pixel art. Today's task is simple: write a program, or a function that displays the idle small Mario sprite, from Super Mario Bros, on NES, over a blue background.Īny kind of entry is valid as long as it displays those 12 * 16 pixels anywhere on the screen / window / browser.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |