Re:Show HN: Names
by azeemba on Saturday January 21, 2023 @04:07PM
(#34470542)
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`?
[ Parent
| on HN ]
Re:Show HN: Names
by GMoromisato on Saturday January 21, 2023 @04:23PM
(#34470687)
Looks like a bug to me.
Re:Show HN: Names
by rolfvandekrol on Saturday January 21, 2023 @05:30PM
(#34471353)
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);
}
}
Re:Show HN: Names
by andrewstuart2 on Sunday January 22, 2023 @01:36AM
(#34474984)
Halfabet is a fun variable name.
I tried aabbccdd... to make a spiral and it broke at m.
tried zzzyyyxxx... so infuriating
Re:Show HN: Names
by RheingoldRiver on Saturday January 21, 2023 @05:25PM
(#34471306)
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.