Git Product home page Git Product logo

Comments (5)

florianfesti avatar florianfesti commented on May 18, 2024

The problem with this corner is that the edge is shorter than they would be nominally. The easiest way out is using only finger edges on the top and bottom parts and have the "F" style edge on the top and bottom of the rectangular side walls.

from boxes.

florianfesti avatar florianfesti commented on May 18, 2024

Hmm, this still doesn't really solve the issue.
.edgeCorner() might just do the "right" thing to make this work - although not in a nice way: elongating the edges at the corner inward one thickness.

from boxes.

florianfesti avatar florianfesti commented on May 18, 2024

The right solution would probably be something like Boxes.polyline() but with edges. Either one Edge type all around or giving type and length tuples. The same code would generate both the outline and the side walls.

from boxes.

florianfesti avatar florianfesti commented on May 18, 2024

Ok, 7aec26e adds polygonWall() and polygonWalls() which do exactly this - including support for rounded corners with flex.
As an example ce8576d adds a new heart box generator.
Will updated the web instance after a bit more testing.

from boxes.

florianfesti avatar florianfesti commented on May 18, 2024

HeartBox makes use of this new feature - although using flex for a smoother outline.

from boxes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.