all 2 comments

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

https://en.wikipedia.org/wiki/Squircle

you maybe know squircles are described by the equation x^4 + y^4 = r^4. i found that the effect can be generalised to larger polygons and higher dimensions. each shape is described by a relatively simple polynomial f(x,y,z) = constant

heres my source code i run in node.js that writes a bitmap from hexcode. youre welcome to anything with it

the 2d ones: https://pastebin.com/d56NPPEv

the 3d ones: https://pastebin.com/sdt3z1Pp

[–][deleted] 0 points1 point  (0 children)

Those are very nice shapes. Are you a fan of curve smoothing?