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

Gradient decorator #51

Closed
viciious opened this issue Sep 16, 2019 · 3 comments
Closed

Gradient decorator #51

viciious opened this issue Sep 16, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@viciious
Copy link
Contributor

viciious commented Sep 16, 2019

I know it's been suggested before, but here's a more less working implementation, which can be salvaged for RmlUI: https://github.com/Qfusion/qfusion/blob/master/source/ui/decorators/ui_gradient_decorator.cpp

I think it's missing three major things (but none are critical in my opinion):

  • diagonal gradients, trivial to implement
  • multiple colors: doable by subdividing the quad into smaller quads for each color transition
  • radial gradients - non trivial, I'd rather skip this one for now

Comments and suggestions are welcome :)

@mikke89
Copy link
Owner

mikke89 commented Sep 16, 2019

Yeah, this would be a nice addition!

I think for radial gradients and arbitrary rotated linear gradients we would probably have to generate a texture. But I'm happy with just a simpler implementation :)

@mikke89 mikke89 added the enhancement New feature or request label Sep 30, 2019
@mikke89
Copy link
Owner

mikke89 commented Sep 30, 2019

Horizontal and vertical color gradients implemented in #53.

@mikke89
Copy link
Owner

mikke89 commented Nov 16, 2020

Closing this as we have basic support, potential improvements can be discussed in a new issue.

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

No branches or pull requests

2 participants