Show HN: Triangul-Art – make pixel art but with triangles
31–39 of 39 posts
Re: Show HN: Triangul-Art – make pixel art but with triangles
#32There 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...
Same reason minecraft and lego are such inspiring tools.
Re: Show HN: Triangul-Art – make pixel art but with triangles
#33There 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
#34Earlier 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…
(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
#35Re: Show HN: Triangul-Art – make pixel art but with triangles
#36Re: Show HN: Triangul-Art – make pixel art but with triangles
#37What is the best way to draw an (xy-axis-aligned) rectangle with this? And what is the word for xy-axis-aligned rectangle? :)