Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create new windows and doors #30

Open
asnielrod opened this issue Aug 24, 2023 · 1 comment
Open

How to create new windows and doors #30

asnielrod opened this issue Aug 24, 2023 · 1 comment

Comments

@asnielrod
Copy link

Hi, I would like to use this project, can you explain how to generate the code for a new design of window or door? I see the code in func.js but I would like to know if you use some kind of program to generate this SVG code. I am very interested in collaborate. Please let me know.

@flatsiedatsie
Copy link

It seems a relative SVG is generated on the spot. The easiest way would be to:

  • draw the SVG you want with something like Inkscape
  • save the file, edit it with a text editor, and extract the relevant paths. E.g. d="M -20 20 etc etc"
  • make the path relative with a tool like https://svg-path.com/
  • replace the parts that should be procedural with variables in the code.

Basically, copy and modify the existing code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants