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

Refactor Gradient constructors #19

Open
Veykril opened this issue May 20, 2019 · 0 comments
Open

Refactor Gradient constructors #19

Veykril opened this issue May 20, 2019 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@Veykril
Copy link
Owner

Veykril commented May 20, 2019

The way gradient's constructors work rn forces one to specify the generic GradientType since the compiler cant infer which type comes from the given ValuesType since a GradientType defines what ValuesType it takes. Due to this the public type definitions like LinearGradient have been created to avoid having to write out the generic parameter everytime. This doesn't solve the problem though.

@Veykril Veykril added the help wanted Extra attention is needed label May 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant