Skip to content

add shape generator #1655

Description

@dujanhung

Feature Description

problem

until now, trying to build common shapes (such as: star, gear, flower, etc), would requires to edit paths manually.

proposed feature

i want to add shape generator.

example

a gear generator script.

func generate_gear(
 pos:Vector2
 ,radius:float
 ,tooth_height:float
 ,tooth_count:int
 ,tooth_bevel_angle:float
 ,smoothness_radius:float
)->String:
 # etc

users enter values.

generate_gear(
 Vector2(360,360)
 ,110
 ,30
 ,6
 ,20
 ,10
)

and then, the output would looks like:

M...Z

later on, this value is fed into <path d="...">

<path d="M...Z">

finally, a gear is generated, and ready to use.

why?

  • fast.
  • accurate.

workarounds

use other apps or websites that could do such things.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions