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

Extend allowable fills with gradients #45

Open
4 tasks
noelwelsh opened this issue May 28, 2017 · 2 comments
Open
4 tasks

Extend allowable fills with gradients #45

noelwelsh opened this issue May 28, 2017 · 2 comments
Labels

Comments

@noelwelsh
Copy link
Contributor

Filling with gradients is supported by both SVG and Java2D (I think). It would be useful to expose this functionality within Doodle as it opens up more creative possibilities.

  • See what SVG and Java2D support
  • Model as an algebraic data type (probably gradient = linear | radial)
  • Extend DrawingContext to allow gradient fills
  • Implement in backends
@noelwelsh
Copy link
Contributor Author

I have some WIP here, that builds on support added to Doodle 0.8. The outstanding work is to augment the SVG renderer to support gradients.

@noelwelsh
Copy link
Contributor Author

Gradients have been added to Java2d and SVG, but I'm not convinced the implementation is correct. Needed:

  • clarify the meaning of the parameters of the parameters for constructing gradients
  • ensure both implementations are correct

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

No branches or pull requests

1 participant