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

Implement gradient for widgets #954

Open
ishitatsuyuki opened this issue Feb 20, 2017 · 1 comment
Open

Implement gradient for widgets #954

ishitatsuyuki opened this issue Feb 20, 2017 · 1 comment

Comments

@ishitatsuyuki
Copy link

It seems Gradient is defined in the color module but never used.

I would like to use that for some widgets instead of flat color.

Probably PistonDevelopers/graphics#1076 should be implemented first.

@mitchmindtree
Copy link
Contributor

Just want to add here that conrod does now support gradients, though only via the glium and gfx backends. I don't think there's a way to colour individual vertices different colours in piston yet, so piston backend just shows flat colours for now.

Gradients can be achieved by using the Triangles object with Triangles of ColoredPoints. There is not yet any high-level API for displaying gradients and I haven't yet thought much about how to provide this. Any suggestions or references to other high-level gradient APIs welcome!

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