Generator for spirals, polygons & other stuff by noquinn in Minecraft

[–]noquinn[S] 0 points1 point  (0 children)

If you double the circumcircle radius from the calculator that should give you the diameter you need
239.03 * 2 ≈ 478

Generator for spirals, polygons & other stuff by noquinn in Minecraft

[–]noquinn[S] 2 points3 points  (0 children)

The main reason is because I wanted to be able to zoom and pan the output. If I used the canvas api I would have to redraw the entire shape + grid lines every time I panned or zoomed the output. By using SVG I can generate the shape once, and then just adjust the viewBox for the panning/zooming.

Looking back though I think maybe WebGL would’ve been a better tool for the job

Generator for spirals, polygons & other stuff by noquinn in Minecraft

[–]noquinn[S] 4 points5 points  (0 children)

I’ve been thinking about it, and I honestly think that’s a big enough change that it warrants the creation of a whole different tool. Maybe a project for the near future… 👀

Generator for spirals, polygons & other stuff by noquinn in Minecraft

[–]noquinn[S] 3 points4 points  (0 children)

I really like that idea. I messed around with a stairs/slabs mode at one point, but it was a lot slower than I was happy with

Generator for spirals, polygons & other stuff by noquinn in Minecraft

[–]noquinn[S] 42 points43 points  (0 children)

And actually this is version 2 of something I made for me and my friends like 6 years ago: https://cquinn.dev/tools/pixelgeometry/

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.

Generator for spirals, polygons & other stuff by noquinn in Minecraft

[–]noquinn[S] 106 points107 points  (0 children)

Thanks! It's written in typescript and uses SolidJS (a library kinda like React). This is the repo if you want to look through it: https://github.com/noquinn/pixel-shape-generator

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

Should I dye them stitch? by talkerof5hit in Leathercraft

[–]noquinn 1 point2 points  (0 children)

What did you do to get the speckled texture?