News for hackers. Stuff that matters.
Re:Draw an iceberg and see how it would float in water by t0astbread on Saturday February 20, 2021 @09:13AM (#26204203)
I think this was patched just now. On my last visit a few minutes ago the bug still worked, now it removes any larger bits where the lines intersect.

Also, the code has been amended right where this comment is:

  // People like to draw shapes with kinks, which results
  // in part of the polygon being treated as negative area.
  // turf.unkinkPolygon can be used to find the kinks and
  // separate the polygon into multiple polygons at the
  // kinks, but it's a little fragile and hard to combine
  // into a single unkinked polygon. [...]
Re:Draw an iceberg and see how it would float in water by jinseokim on Saturday February 20, 2021 @09:38AM (#26204375)
You may want to revert the (tedious) patch about intersections. Here is a simple workaround:

> turf.unkinkPolygon=(x)=>x;

Press F12, click 'Console', copy-paste the above one and press Enter.

Re:Draw an iceberg and see how it would float in water by Aardwolf on Sunday February 21, 2021 @06:48AM (#26212770)
I'm having so much fun with the before-the-fix version, you can make it "jump" out of the water, if you draw a figure 8 under water, and when the negative lobe is at the top and around 75% of the size of the positive one

Even more optimal: https://imgur.com/7gCEJ0T

I've had more extreme versions of this shape teleport off-screen, when starting them under water: https://imgur.com/ymVtTWq

And here's someone holding a balloon: https://imgur.com/8O4rib8

Re:Draw an iceberg and see how it would float in water by crazyKoala2 on Saturday February 20, 2021 @10:11AM (#26204639)
It still works, you just have to mess around with the lines a bit more: https://gliggy.github.io/broken.png
Re:Draw an iceberg and see how it would float in water by dheera on Saturday February 20, 2021 @02:54PM (#26207226)
Damnit it was so much more fun before the "fix".