Unicode image representation thingy

From Esolang
Jump to navigation Jump to search

This article is about systems for writing images with text by User:Hammy. They can be considered esolangs with no input and graphical output.

Note: Unprintable characters (but not space) are replaced by control pictures.

ImageText

First you add a unicode character, take its decimal value (codepoint) and thats the width (add it to the start)

Do that again for height, but append instead of adding to the start (e.g. a 255 by 255 image would be ÿÿ then the rest)

Now add a newline

Then there's a pixel. It's 3 unicode characters (so a white pixel is ÿÿÿ)

Then add a newline

Continue until you have a full row of pixels

Then insert a newline and ----

Then make another row

etc.

then you have an image!!

also using Ā anywhere in a pixel will make it transparent (using it in the size part will just make it nonexistent)

btw interpreters should only check the first 3 characters of each line and if its --- then check the first 4 instead

Examples

Color Test!

3x3 image of these colors:

  • white
  • black
  • red
  • orange
  • yellow
  • lime
  • blue
  • dark blue
  • pink
␃␃
ÿÿÿ
␀␀␀
ÿ␀␀
----
ÿ¥␀
ÿÿ␀
␀ÿ␀
----
␀␀ÿ
␀␀   (non breaking space...)
ÿ␀ÿ