Live data from Hacker News

Show HN: Triangul-Art – make pixel art but with triangles

maxwellito.github.io

31–39 of 39 posts

Re: Show HN: Triangul-Art – make pixel art but with triangles

#32

There is something about this that makes certain kinds of things easier to draw. And I'm not talking about isometrics. Not sure what it is...

It's the constraints I think. They restrict search space to something more maneagable, and make creating stuff much easier.

Same reason minecraft and lego are such inspiring tools.

Re: Show HN: Triangul-Art – make pixel art but with triangles

#33
post #32

There is something about this that makes certain kinds of things easier to draw. And I'm not talking about isometrics. Not sure what it is...

It's the constraints I think. They restrict search space to something more maneagable, and make creating stuff much easier. Same reason minecraft and lego are such inspiring tools.

"The more constraints one imposes, the more one frees one's self." - Igor Stravinsky

Re: Show HN: Triangul-Art – make pixel art but with triangles

#34
post #26

Earlier quoted context omitted.

Better find a good and efficient way to serialise it, otherwise it's gonna reach the URL length limitation. :-O But if you're up for it, please make a PR! :-D

A 24-bit color stored in base64 gets stored in 4 characters. Your default 20x30 map, multiplied by 4 bytes, is still just 2400 bytes. That fits in a URL, quite comfortably, at least as far as browsers are concerned. If you want to pack tighter, a palettized serialization would work fine here. Since you don't have a gradient tool or anything else that can span colors, you have a bound on the amount of information bein…

Example of a drawing tool of mine that lets you save/share via URL: http://wry.me/hacking/flake.html

(I'd paste in the example of a Christmas tree a friend drew, except it's, uh... a lot. But the source code might help as a starting point. The OP's URLs wouldn't be as huge since it has a much coarser grid.)

Re: Show HN: Triangul-Art – make pixel art but with triangles

#37
post #3

What is the best way to draw an (xy-axis-aligned) rectangle with this? And what is the word for xy-axis-aligned rectangle? :)

I’ve heard people (mainly German software developers) use “paraxial rectangle” for this.
Post reply on HN