Generator for spirals, polygons & other stuff
I saw Plexofdeath's post yesterday showcasing his dome generator. Thought it was neat, and made me want to share something I made a while back.
[https://cquinn.dev/pixel-shape-generator/](https://cquinn.dev/pixel-shape-generator/)
It's a tool for plotting pixelated polygons, spirals, squircles and some other stuff that might be tricky to build by hand. Hopefully it'll come in handy for some people
[https://cquinn.dev/pixel-shape-generator/](https://cquinn.dev/pixel-shape-generator/)
It's a tool for plotting pixelated polygons, spirals, squircles and some other stuff that might be tricky to build by hand. Hopefully it'll come in handy for some people
Commentaires
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
All of the grid/pixel stuff is rendered with SVGs. All the shapes that have straight lines use an altered version of [the Bresenham line algorithm](https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm)
Except that one was just plain javascript, used the canvas api instead of svgs, and is really badly written. Didn't know what I was doing.
Looking back though I think maybe WebGL would’ve been a better tool for the job
never used webgl.. cant say much there
very cool tool btw, i definitely want to use this
░█░
█░█
░█░
and some use
███
█░█
███
but if I'm building a steep conical roof then both are necessary.
I would like to get pentagon with sides of 281. However when plugging in the diagonal from this calculator[Pentagon calculator](https://www.omnicalculator.com/math/pentagon?calculatorResult=H4sIAAAAAAAAA7VYaW%2FbOBD9K4awWLRFo5KUKInZokBs9%2FAiZ91ruygCxmJkbnWtKHnrFvnvO7Rki3YMWwaSfIlMjmbmPc68of3LEmkkUzEueSms41%2FWhMeTKoYP4SdeSH4TC3XOE6Gs478tmU6uCx7KSlnPrYksjE%2B8EBz%2B5aKQiShFAc9TIaNpCQ%2Bh5FGW8tj6Bm9NeRpt891Ya5MsDWUps1TpfGSaV%2BXag5KhuOY20s8zHleQdrPWe9VDOh4kMDEBaP%2B1hfYP%2BfGQl1y%2Fz5XKJtJEu3IGjqQaSpXHfC5C6%2FiWx0rot5Xi0YKqSsKy9f0yeDuNR1QE%2FfPB10H5Y3SSXdtLM6ChTG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Qgl1EyQrJg3i6p6rdSXWYjRwS%2BD52PUYcQhBzHYRhhXm%2B6yMPY0wYoxCUuS71GSTsOrCJiYuQeSQP4WldtzujcKlre55PKQKCfIJcShxYCwKG4Bmiuw7GCMIiD7KhBFhmjucSD0FWyCNsheJBPJmToTsGh9gudqnjMd%2FBxMHI0ZQRqADKHAcHNHD0sTMXexRjz0eUBQ5lDDLTr7Un8SCeNmdP99Zgjg1V6oFP4mHGgoBgHOijdz1IwYXaxgEk5gRBAIQiBuVCGFSLLh2oixbHg3jamG7dYUBvtZk0H1rdWqnQ84MlrP7tpshm4KxY%2FZ7GqzJTfCaaWZXFMc%2BVCEdhI1dTEecfYIaYUlvvKBEvLo4LER%2FHVbQhsTkQwAs9K5J7hLR7k8XmUgqNd8hmX274a4t9Y2NDlDZ21%2BtrbRP%2B%2Fge%2FHAqIbxQAAA%3D%3D)) with 0 rotation, the straight side has coordinates of (-184,133) and (-184,-133). That is far from 281. I noticed there are multiple diameters with the same lengths, hence I cannot just manually change it until the length fits.
Thus, could you point out what the diameter of a pentagon is or where I made a mistake.
239.03 \* 2 ≈ 478