21 ms·
Show HN: Names
- jstjnsn 4y 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!
- azeemba 4y agoSo 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`?
- boffinism 4y agoI tried aabbccdd... to make a spiral and it broke at m.
- sirl1on 4y agotried zzzyyyxxx... so infuriating
- RheingoldRiver 4y agoYou 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.
- GMoromisato 4y agoLooks like a bug to me.
- rolfvandekrol 4y agoDefinitely 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); } }
- andrewstuart2 4y agoHalfabet is a fun variable name.
- aordano 4y agoLove your name/logo :)
- alphabet9000 4y agoaraazaaazaataazhataaamazzazawzkaazzzaaazaazawaazgagkgagaaaaraagagaadlbbeaabeaabeaabeaabeaabeaabeadaabaadadaaadaacgaacgaacgaaadaacaaeaebecaaebaaeaaaeabaeabaeaaaabbbbbabacaaeac
- simlevesque 4y agoYou blew my mind.
- deleted 4y ago[deleted]
- Existenceblinks 4y agoYour username tells your skills in the game.
- RheingoldRiver 4y agoA bit cleaner, since `.` is a direction change in place (although the input string doesn't look as nice): .r..z...z..t..zh.t...m.zz.z.wzk..zzz...z..z.w..zg.gkg.g....r..g.g..dlbbe..be..be..be..be..be..be.d..b..d.d...d..cg..cg..cg...d..c..e.ebec..eb..e...e.b.e.b.e....bbbbb.b.c..e.c
- Turing_Machine 4y agotarquinfintimlinbinwhinbustopftangftangolebiscuitbarrel quickly runs off the edge of the world. Maybe connect opposite edges to form a toroidal geometry to avoid this?
- JoeOfTexas 4y agoheheleeq
- deleted 4y ago[deleted]
- warent 4y agoI didn't have the courage to do it. Bonus points that it starts with "hehe" LOL
- quickthrower2 4y agoheheleet also works
- thih9 4y ago.heh...dicc.ccc
- jhardy54 4y agobbbbddddffffhhhhjjjjllll0nnnnpppprrrrttttvvvvxxxxzzzz0 bbbbddddffffhhhhjjjjllll0nnnnpppprrrrttttvvvvxxxxzzzz0 bbbbddddffffhhhhjjjjllll0nnnnpppprrrrttttvvvvxxxxzzzz0 bbbbddddffffhhhhjjjjllll0nnnnpppprrrrttttvvvvxxxxzzzz0
- deleted 4y ago[deleted]
- jstjnsn 4y agoI really like this one, thank you!
- thih9 4y agoNow I with there was support for functions. In the meantime: bbbbddddffffhhhhjjjjllll0nnnnpppprrrrttttvvvvxxxxzzzz0 bbbbddddffffhhhhjjjjllll0nnnnpppprrrrttttvvvvxxxxzzzz0 bbbbddddffffhhhhjjjjllll0nnnnpppprrrrttttvvvvxxxxzzzz0 bbbbddddffffhhhhjjjjllll0nnnnpppprrrrttttvvvvxxxxzzzz0 zbbbbddddffffhhhhjjjjllll0nnnnpppprrrrttttvvvvxxxxzzzz0 zzbbbbddddffffhhhhjjjjllll0nnnnpppprrrrttttvvvvxxxxzzzz0 zzbbbbddddffffhhhhjjjjllll0nnnnpppprrrrttttvvvvxxxxzzzz0 zzbbbbddddffffhhhhjjjjllll0nnnnpppprrrrttttvvvvxxxxzzzz0 zz.bbbbddddffffhhhhjjjjllll0nnnnpppprrrrttttvvvvxxxxzzzz0 ...z.z.bbbbddddffffhhhhjjjjllll0nnnnpppprrrrttttvvvvxxxxzzzz0 zz. bbbbddddffffhhhhjjjjllll0nnnnpppprrrrttttvvvvxxxxzzzz0 ...z.z.bbbbddddffffhhhhjjjjllll0nnnnpppprrrrttttvvvvxxxxzzzz0 z.bbbbddddffffhhhhjjjjllll0nnnnpppprrrrttttvvvvxxxxzzzz0 z.z.bbbbddddffffhhhhjjjjllll0nnnnpppprrrrttttvvvvxxxxzzzz0 z.z.bbbbddddffffhhhhjjjjllll0nnnnpppprrrrttttvvvvxxxxzzzz0 z.z.bbbbddddffffhhhhjjjjllll0nnnnpppprrrrttttvvvvxxxxzzzz0
- jspann 4y agoAAAAQQQQSSSSUUUVVV
- deleted 4y ago[deleted]
- shevis 4y agoiaefeaiaefeaideadagaaa
- thih9 4y agoI was surprised by this one. I didn't expect something so short to produce a meaningful result.
- warent 4y agoaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbnaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbnaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbnaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbaabbn
- Hbruz0 4y ago[flagged]
- warent 4y agoedit: nah you changed your post without saying so. cringe
- Hbruz0 4y agoI mentioned that the space formatting on HN caught me off guard. Editing something to provide a better quality result is the opposite of cringe imo.
- Hbruz0 4y agoI tried using spaces but HN replaces multiple spaces with one.
- paolosimone 4y agohttps://news.ycombinator.com/formatdoc https://news.ycombinator.com/formatdoc these words are very distant go nuts! (wink wink)
- paolosimone 4y agoTTP reached! https://knowyourmeme.com/search?q=TTP https://knowyourmeme.com/search?q=TTP
- jstjnsn 4y agoThe power of the internet
- teaearlgraycold 4y agoBeautiful
- Existenceblinks 4y agoSending this cryptic message to my wife's boyfriend
- iJohnDoe 4y agoIs there a way to do it in reverse?
- jstjnsn 4y agoIf you mean from a drawing of lines in the exact same style to the original text prompt, i dont think so. Unless you make some program that can be given the start and endpoint of the drawing, then it could decode the length and angle of all lines from end to start. This would not allow for overlapping lines though, since multiple lines could be overlapping, but maybe that actually doesnt matter. Could be a fun experiment :)
- spdustin 4y agoa..b..c..d..e..f..g..h..i..j..k..l..m.nopqrstuvwxyzz.a..z.b..z.c..z.d..z.e..z.f..z.g..z.h..z.i..z.j..z.k..z.l..z.m.z.nz.oz.pz.qz.rz.sz.tz.uz.vz.wz.xz.yz.zz.z.a..z.z.b..z.z.c..z.z.d..z.z.e..z.z.f..z.z.g..z.z.h..z.z.i..z.z.j..z.z.k..z.z.l..z.z.m.z.z.nz.z.oz.z.pz.z.qz.z.rz.z.sz.z.tz.z.uz.z.vz.z.wz.z.xz.z.yz.z.zz.z.z.a..z.z.z.b..z.z.z.c..z.z.z.d..z.z.z.e..z.z.z.f..z.z.z.g..z.z.z.h..z.z.z.i..z.z.z.j..z.z.z.k..z.z.z.l..z.z.z.m.z.z.z.nz.z.z.oz.z.z.pz.z.z.qz.z.z.rz.z.z.sz.z.z.tz.z.z.uz.z.z.vz.z.z.wz.z.z.xz.z.z.yz.z.z.zz.z.z.z.a..z.z.z.z.b..z.z.z.z.c..z.z.z.z.d..z.z.z.z.e..z.z.z.z.f..z.z.z.z.g..z.z.z.z.h..z.z.z.z.i..z.z.z.z.j..z.z.z.z.k..z.z.z.z.l..z.z.z.z.m.z.z.z.z.nz.z.z.z.z That was unexpectedly fun!
- deleted 4y ago[deleted]
- zulu-inuoe 4y agoOf course somebody thought of this already
- deleted 4y ago[deleted]
- andrelaszlo 4y agoHaha my first thought as well: bbddffhhjjlln..n..p..p..r..r..t..t..v..v..x..x..z..z..n.n..n.n..o.o..o.o..p.p..p.p..q.q..q.q..r.r..r.r..s.s..s.s..t.t..t.t..u.u..u.u..v.v..v.v..w.w..w.w..x.x..x.x..y.y..y.y..z.z..z.z..a...z.a...z..a...z.a...z..b...z.b...z..b...z.b...z..c...z.c...z..c...z.c...z..d...z.d...z..d...z.d...z..e...z.e...z..e...z.e...z..f...z.f...z..f...z.f...z..g...z.g...z..g...z.g...z..h...z.h...z..h...z.h...z..i...z.i...z..i...z.i...z..j...z.j...z..j...z.j...z..k...z.k...z..k...z.k...z..l...z.l...z..l...z.l...z..m..z.m..z..m..z.m..z..n.z.n.z..n.z.n.z..o.z.o.x
- imwm 4y agoabcdefghijkloabcdefghijklopabcdefghijkloabcdefghijklopabcdefghijkloabcdefghijklopabcdefghijkloabcdefghijkloa
- Hbruz0 4y agoSomeone please make a rickroll QR code
- chrisshroba 4y agohttps://gist.githubusercontent.com/chrisshroba/6c37c650668f4e949c355dd4b9c845e8/raw/5bb71274aafb0a23a9464e866379323bb8d62524/gistfile1.txt https://gist.githubusercontent.com/chrisshroba/6c37c650668f4...
- jstjnsn 4y agoHere is something I never would have thought to be done with my funky lines generator :’)
- RheingoldRiver 4y agoZZZZYYYYXXXXWWWWVVVVUUUU.ZZZZYYYYXXXXWWWWVVVVUUUU.ZZZZYYYYXXXXWWWWVVVVUUUU.ZZZZYYYYXXXXWWWWVVVVUUUU
- w-m 4y agossqu...are one-two-one-two hello i need help i'm trapped in a giant painting by wassily kandinsky and i can't find my way out of here what should i do? no no no no
- jstjnsn 4y agoLove this haha
- RheingoldRiver 4y ago> hello i need help i'm trapped in a giant painting by wassily kandinsky and i can't find my way out of here what should i do? a lot of these are very cool and artful and incredibly creative, and I mean, the QR code generator, what can I say, but I think this one is my favorite
- knipsaanarchist 4y ago[flagged]
- creepycrawler 4y agoa..ac..ab..ac..ac..ac..ac..ab..ac..ac..ac..ab..ac..ac..ac..ac..ab..ac..ab..l..a..ab..ac..ac..ab..ac..ac..ab..ac..ac..ab..ac..ab..ac..ac..ab..ac..ac..ab..ac..ac..ab..ac..ac..ab..aca..ba..ca..ca..ba..ca..ba..ca..ca..ba..b..l..aa..ca..ba..ca..ca..ba..ca..ca..ba..ca..ca..ca..ba..ca..ca..ba..ca..ca..ca..ba..ca..ca..ba..ca..ca..ba..ca..ca..ca..ba..ca..ca..ba..ca..b..l..aa..ba..ca..ca..ba..ca..ca..ba..ca..ba..ca..ca..ba..ca..ca..ba..ca..ca..ba..b
- ManDeJan 4y agoThis is so sad z...z.z...zz...lk.w...l..g..l.l..g...z...f..f.f..f..k.wg.r.a
- jtmarmon 4y agoz...z.z...zz..z...z.z...z..z.fz...z.z...z.z....a..ba..ba..ba..ba..ba..ba..ba..ba..ba..ba..ba..ba..ba..ba..ba..ba..ba..ba..ba..ba..ba..ba..ba..ba..ba..ba..baz.z
- binarymax 4y agoCool! Feature request: put the word in the url querystring so they are easy to share.
- jstjnsn 4y agoYeah, some people in the comments got really creative but it would definitely be nice if sharing it would be easier. I might also add a download as png button at the bottom of the canvas. (Can already be done by right clicking but thats not very user friendly)
- rawgabbit 4y agoaaaz.zv.vbaav.vaabv.v.bav.vaavaabvaaawbezcabyaaoaazcaoaaboaaabyaagzbaazaaccaaccaaccaaccaaccaaccaaccaaccaaccaaccaaccaaccaaccaahaazaapbaaozobaanaamaaaiahl Love
- jstjnsn 4y agoSpread the love <3
- chrisshroba 4y agoHere's a fun one that's too long to print in this comment: https://gist.githubusercontent.com/chrisshroba/6c37c650668f4e949c355dd4b9c845e8/raw/5bb71274aafb0a23a9464e866379323bb8d62524/gistfile1.txt https://gist.githubusercontent.com/chrisshroba/6c37c650668f4... And the code used to generate it: First some python to create a qr code from the link and output it as a json list of booleans: import qrcode, json code = qrcode.QRCode() code.add_data('https://youtu.be/dQw4w9WgXcQ') code.make() json.dumps(code.modules) Copy and paste the out into the browser console and assign it to a variable called `qr`. Then run the following code to generate and display the string in the viewer: (function(qr) { let start = ' L L L L K L L L L K' let draw = val => {$('.names').value = val; main() }; let decode = val => val.replaceAll('d','a ').replaceAll('r',' a ').replaceAll('u',' a ').replaceAll('l',' a'); let size = 4 let on = (s) => { let ret = '' let line = 'r'.repeat(s-1)+'l'.repeat(s-1) for (let i=0; i<s-1; i++) ret += line + 'd'; ret += line ret += 'u'.repeat(s-1) return ret } let right_cell = (s) => 'r'.repeat(s) let left_cell = (s) => 'l'.repeat(s) let down_cell = (s) => 'd'.repeat(s) // draw(decode(on(3)+next_cell(3)+on(3)+next_cell(3)+next_cell(3)+on(3)+next_cell(3))) let str = start for (line of qr) { for (val of line) { str += val ? (on(size) + right_cell(size)) : right_cell(size) } console.debug(`A ${left_cell(size).repeat(line.length)}, ${size}, ${line.length} line ${line}`) str += left_cell(size).repeat(line.length) str += down_cell(size) } console.log(str); draw(decode(str)) })(qr)
- w-m 4y agoThis is beautiful work!
- johnfn 4y agoThis is remarkable.
- KyleBerezin 4y agoFantastic
- 4y ago
- tonetheman 4y ago[dead]
- qainsights 4y agoaaaa.bbbb.ccccc.dddd.eeee.ffff.gggg.hhhh.iiii.jjjj.kkkk.llll.mmmm.nnnnn.oooo.pppp.qqqq.rrrr.ssss.tttt.uuuu.vvvv.wwww.xxxx.yyyy.zzzz
- RheingoldRiver 4y agooh, I expected that to be this: aaaa.b.bbbb.c.cccc.d.dddd.e.eeee.f.ffff.g.gggg.h.hhhh.i.iiii.j.jjjj.k.kkkkk.l.llll.m.mmmmm....n...nnnn...o...oooo...p...pppp...q...qqqq...r...rrrr...s...ssss...t...tttt...u...uuuu...v...vvvv...w...wwww...x...xxxx...y...yyyy...z...zzzz
- qainsights 4y agoSorry, I don't under how the visulization designed. Any explanation please?
- jstjnsn 4y agoFor every letter typed a line is drawn. The length of the letter is determined by its position in the alphabet. The next line will be drawn with a rotation depending if its in the first or the second half of the alphabet. So it goes to the left is its between a and m and to the right if its between n and z. Hope that clears it up for you!
- qainsights 4y agoThanks. got it. It would be great if you add an example in the site :)
- jstjnsn 4y agoUpdate: wow I did not expect this response, I am so happy that people are enjoying Names! I have gathered some ideas for new features and improvements from the comments, I will see if I can implement them.
- qainsights 4y agoSorry, I do not understand, any explanation please?
- LASR 4y agoBasically it's a drawing program that takes as input letters and then moves a cursor different distances and rotations based on which letter is next. So people are having fun coming up with letter permutations that draw something insteresting.
- qainsights 4y agoThank you. I got it.
- thih9 4y agohhhaaaahaaaahaaaaaahaauaaaaaaauaahaaahaaaeoaaaoaahaa
- t_a_v_i_s 4y agoabcdefghijklm...n..o..p..q..r..s..t..u..v..w..x..y..z..z.az.bz.cz.dz.ez.fz.gz.hz.iz.jz.kz.lz.m...z.n..z.o..z.p..z.q..z.r..z.s..z.t..z.u..z.v..z.w..z.x..z.y..z.z..z.z.az.z.bz.z.cz.z.dz.z.ez.z.fz.z.gz.z.hz.z.iz.z.jz.z.kz.z.lz.z.m...z.z.n..z.z.o..z.z.p..z.z.q..z.z.r..z.z.s..z.z.t..z.z.u..z.z.v..z.z.w..z.z.x..z.z.y..z.z.z..z.z.z.az.z.z.bz.z.z.cz.z.z.dz.z.z.ez.z.z.fz.z.z.gz.z.z.hz.z.z.iz.z.z.jz.z.z.kz.z.z.lz.z.z.m...z.z.z.n..z.z.z.o..z.z.z.p..z.z.z.q..z.z.z.r..z.z.z.s..z.z.z.t..z.z.z.u..z.z.z.v..z.z.z.w..z.z.z.x..z.z.z.y..z.z.z.z..z.z.z.z.az.z.z.z.bz.z.z.z.cz.z.z.z.dz.z.z.z.ez.z.z.z.fz.z.z.z.gz.z.z.z.hz.z.z.z.iz.z.z.z.jz.z.z.z.kz.z.z.z.lz.z.z.z.m...z.z.z.z.n..z.z.z.z.o..z.z.z.z.p..z.z.z.z.q
- deleted 4y ago[deleted]
- memorable 4y agoabcdefghijklm...n......o......p..........q..........r..s..........t..u..........v..w..x..y..z A lil spiral
- memorable 4y agoaaaabbbccccddddeeeeffffgggghhhhiiiijjjjkkkkllllm...m...m...m...n......n......n......n..o..o..o..o..p..p..p..p..q..q..q..q..r..r..r..r..s..s..s..s..t..t..t..t..u..u..u..u..v..v..v..v..w..w..w..w..x..x..x..x..y..y..y..y..z..z..z..z Some kind of square thingy
- grose 4y agoThis would be great for generating avatars from usernames, very cool.
- pavon 4y agoRepeating a string 4 times creates fun patterns with 360, 180 or 90 degree rotational symmetry (modifiable by adding spaces) which make nice looking avatars: "grosegrosegrosegrose" "grose grose grose grose"
- pavon 4y agoScratch that idea - people will not be pleased with the avatar for trebancas.
- toppy 4y agoHilbert's curve: bbb..d..b..bbb..b..d..bbdb..b..bdbb..b..bbdb..b..f..b..bdbb..b..bbdb..b..bdbb..d..b..bbb..b..d..bbb..d..b..bdbb..b..bbdb..b..d..bbb..d..b..bbb..b..d..bbfbb..d..b..bbb..b..d..bbb..d..b..bdbb..b..bbdb..b..bbb..b..bdbb..b..bbdb..b..d..bbb..d..b..bbb..b..d..bbfbb..d..b..bbb..b..d..bbb..d..b..bdbb..b..bbdb..b..d..bbb..d..b..bbb..b..d..bbdb..b..bdbb..b..bbdb..b..f..b..bdbb..b..bbdb..b..bdbb..d..b..bbb..b..d..bbb..b..bbb..d..b..bbb..b..d..bbdb..b..bdbb..b..bbdb..b..f..b..bdbb..b..bbdb..b..bdbb..d..b..bbb..b..d..bbb..d..b..bdbb..b..bbdb..b..d..bbb..d..b..bbb..b..d..bbfbb..d..b..bbb..b..d..bbb..d..b..bdbb..b..bbdb..b..bbb..b..bdbb..b..bbdb..b..d..bbb..d..b..bbb..b..d..bbfbb..d..b..bbb..b..d..bbb..d..b..bdbb..b..bbdb..b..d..bbb..d..b..bbb..b..d..bbdb..b..bdbb..b..bbdb..b..f..b..bdbb..b..bbdb..b..bdbb..d..b..bbb..b..d..bbd...bbb..d..b..bbb..b..d..bbdb..b..bdbb..b..bbdb..b..f..b..bdbb..b..bbdb..b..bdbb..d..b..bbb..b..d..bbb..d..b..bdbb..b..bbdb..b..d..bbb..d..b..bbb..b..d..bbfbb..d..b..bbb..b..d..bbb..d..b..bdbb..b..bbdb..b..bbb..b..bdbb..b..bbdb..b..d..bbb..d..b..bbb..b..d..bbfbb..d..b..bbb..b..d..bbb..d..b..bdbb..b..bbdb..b..d..bbb..d..b..bbb..b..d..bbdb..b..bdbb..b..bbdb..b..f..b..bdbb..b..bbdb..b..bdbb..d..b..bbb..b..d..bbb..b..bbb..d..b..bbb..b..d..bbdb..b..bdbb..b..bbdb..b..f..b..bdbb..b..bbdb..b..bdbb..d..b..bbb..b..d..bbb..d..b..bdbb..b..bbdb..b..d..bbb..d..b..bbb..b..d..bbfbb..d..b..bbb..b..d..bbb..d..b..bdbb..b..bbdb..b..bbb..b..bdbb..b..bbdb..b..d..bbb..d..b..bbb..b..d..bbfbb..d..b..bbb..b..d..bbb..d..b..bdbb..b..bbdb..b..d..bbb..d..b..bbb..b..d..bbdb..b..bdbb..b..bbdb..b..f..b..bdbb..b..bbdb..b..bdbb..d..b..bbb..b..d..bbb
- xcambar 4y agoBest unexpected use of the tool. I'm less impressed by the achievement than by the time and energy you used towards it. Well done!
- toppy 4y agoRecursion helped a lot ;) It took me like 15 minutes to make it. Reminds me of L-systems: https://en.wikipedia.org/wiki/L-system https://en.wikipedia.org/wiki/L-system.
- jstjnsn 4y agoAmazing! Thank you for taking the time to make this :)
- jamesgreenleaf 4y agoI'm impressed by the responses here. I wonder if it's possible to write something in plain language that can be read, which is also represented by the image it generates. An attempt: pick a card, any card. pick a card, any card. pick a card, any card. pick a card, any card.
- nonethewiser 4y agoThere is: .
- jstjnsn 4y agoHehe
- elil17 4y agoMy attempts: piet mondrian piet mondrian piet mondrian pot a. pan
- jamesgreenleaf 4y agoabcdefghijklmabcdefghijklm nopqrstuvwxyznopqrstuvwxyznopqrstuvwxyznopqrstuvwxyz
- pavon 4y agoThe name game in the name game often gives fun looping results: Janson Janson bo-banson, bonana-fana fo-fanson, Fee fi mo-manson, Janson! Add or remove commas to keep it from going out of bounds.
- pavon 4y agoDoes what it says: tile tile tile, tile tile tile tile, tile tile tile, tile tile tile tile, tile tile tile, tile tile tile tile, tile tile tile, tile tile tile tile Another fun tiling: ugoldfish, goldfish swim goldfish, goldfish swim goldfish, goldfish swim goldfish, goldfish swim
- Existenceblinks 4y agoLike a minified code whose functions only return void. A lot of potential of creating funny programs based on named functions encoded in alphanumeric characters + some special ones. Well..we were coming from tape automata anyway, snap semantics to it!
- Rexxar 4y agoShouldn't "abcdefghijklmnopqrstuvwxyz" be a spiral ? Why the direction change at n ?
- ipince 4y agoI'm guessing just to make it more interesting, and have name drawings turn left/right, instead of just turning left. Note that n is the halfway point.
- turtlet 4y agoThis is cool. Kind of like an abbreviated subset of the Logo programming language. Would be nice to be able to specify angles other than 90° though.
- layer8 4y agoThis is like an esolang version of Logo turtle graphics.
- bfung 4y agoFeature request: unicode pls!
- rifty 4y agoaaaddddggggjjjjllllnnnnpppprrrrttttvvvvxxxxzzzzbbccccffffhhhhjjjjllllnnnnpppprrrrttttvvvvxxxxzzzz
- Tepix 4y agoInteresting. Only covers ASCII, umlauts etc get ignored. It seems like a lost opportunity not to have diagonal lines.
- jstjnsn 4y agoGood point, I’ll think of adding that, thanks for the idea!
- cycomanic 4y agoI wondered what word would represent a square and did a quick guess with otto (a German name), which was actually very close (after investigating a bit more I'm even more surprised).
- kris_wayton 4y ago"noon" and "poop" make pretty good squares.
- NikxDa 4y ago"popo" (German word for butt) makes a closed rectangle that's _almost_ a square
- kris_wayton 4y agoNot a word, but "zzzz", or any four character repetition makes a perfect square. So now the previous comments that generate almost-squares make sense to me. It all clicked a little late for me :)
- probablypower 4y agoWhat was your motivation for the following function? 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); } } I'm sure you have your reasons, but when I was writing the alphabet to make a spiral I found the rotation reverse on me at 'n' which is where the other cases of rotateline() kick in. Why isn't this function just: function rotateLine(position) { context.rotate((-90 \* Math.PI) / 180); } Is it because it creates uninteresting results for actual names? Everyone just becomes spiral variations?
- alberth 4y agoWhy does it draw a different picture for a word written in reverse?
- overspeed 4y agoPasting all plain text on the discussion page here at https://news.ycombinator.com/item?id=34470287 https://news.ycombinator.com/item?id=34470287 as of 22-01-2022 16:00Z renders Hilbert curve prominently while the rest is a Hodge podge of blocks and lines.
- KomoD 4y agoPretty cool, do wish the input box was larger though