Skip to content

Eye Square with Rounded Corner - Just a Question, not an Issue #116

@SergiuPogorDev

Description

@SergiuPogorDev

I'm trying to write a new Module Renderer for Eye(internal and external) in order to get Square with Rounded Corner(not circle) but not sure how to get that.

I mean, using matrix logic how to achieve this?

For Circle I use this one:

      ->move(3.5, 0)
      ->ellipticArc(3.5, 3.5, 0., false, true, 0., 3.5)
      ->ellipticArc(3.5, 3.5, 0., false, true, -3.5, 0.)
      ->ellipticArc(3.5, 3.5, 0., false, true, 0., -3.5)
      ->ellipticArc(3.5, 3.5, 0., false, true, 3.5, 0.)
      ->close()
      ->move(2.5, 0)
      ->ellipticArc(2.5, 2.5, 0., false, true, 0., 2.5)
      ->ellipticArc(2.5, 2.5, 0., false, true, -2.5, 0.)
      ->ellipticArc(2.5, 2.5, 0., false, true, 0., -2.5)
      ->ellipticArc(2.5, 2.5, 0., false, true, 2.5, 0.)
      ->close()

Should I focus on replacing ellipticArc with a combination of line() and curve()?

Expected result:
qr-code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions