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

Configurable Polygon mask #112

Closed
JakeLin opened this issue Feb 26, 2016 · 1 comment · Fixed by #133
Closed

Configurable Polygon mask #112

JakeLin opened this issue Feb 26, 2016 · 1 comment · Fixed by #133
Milestone

Comments

@JakeLin
Copy link
Member

JakeLin commented Feb 26, 2016

Add parameter to configure the sides of Polygon mask like Star.

Currently, it generate random sides every time.

  public func maskPolygon() {
    let polygonPath = maskPolygonBezierPath(Int(arc4random_uniform(10) + 3))
    drawPath(polygonPath)
  }

Should take have sides parameter like public func maskPolygon(sides: Int = 6)

@JakeLin JakeLin added this to the 2.0 milestone Feb 26, 2016
@tbaranes
Copy link
Member

Agree 👍

@JakeLin JakeLin modified the milestones: 2.1, 2.0 Mar 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants