Log24

Saturday, March 14, 2015

Unicode Diamonds

Filed under: General,Geometry — m759 @ 9:16 pm

The following figure, intended to display as
a black diamond, was produced with
HTML and Unicode characters. Depending
on the technology used to view it, the figure
may contain gaps or overlaps.

◢◣
◥◤

Some variations:

◤◥
◣◢

◤◥
◢◣

◤◣
◢◥

◤◣
◥◢

Such combined Unicode characters —

◢  black lower right triangle,
◣  black lower left triangle,
᭘  black upper left triangle,
᭙  black upper right triangle 

— might be used for a text-only version of the Diamond 16 Puzzle
that is more easily programmed than the current version.

The tricky part would be coding the letter-spacing and
line-height to avoid gaps or overlaps within the figures in
a variety of browsers. The w3.org visual formatting model
may or may not be helpful here.

Update of 11:20 PM ET March 15, 2015 — 
Seekers of simplicity should note that there is
a simple program in the Processing.js  language, not  using
such Unicode characters, that shows many random affine
permutations of a 4×4 diamond-theorem array when the
display window is clicked.

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress