Hacker News new | ask | show | jobs
by jstjnsn 1245 days ago
"Names" is a programmatic visualisation of letters in a word, based on their position in the alphabet. Try typing a word yourself in the box below!
2 comments

So I just typed each letter to see what the pattern was. Is there a reason you had the pattern rotate the other way after `m`?
I tried aabbccdd... to make a spiral and it broke at m.
You can do it:

abcdefghijklm...n..o..p..q..r..s..t..u..v..w..x..y..z..z.ab...z..c...z..d...z..e

etc.

i.e., `.` changes direction. Once you get to `z` you can continue appending additional `z`s to keep it going. I quit making the spiral here cos I realized the top comment is also a spiral, although theirs is in the other direction.

tried zzzyyyxxx... so infuriating
Looks like a bug to me.
Definitely not a bug. There is a piece of code in source that looks like this:

  function rotateLine(position) {
    if (position < halfabet) {
      context.rotate((-90 \* Math.PI) / 180);
    } else if (position > halfabet) {
      context.rotate((90 \* Math.PI) / 180);
    } else if (position === halfabet) {
      context.rotate((180 \* Math.PI) / 180);
    }
  }
Halfabet is a fun variable name.
Love your name/logo :)
Thank you! It was made with the generator :)
I know that was why i said name/logo :P

I saw the similarity, wrote "joost" and saw it was the same.