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

Replaced GenImageGradientH and GenImageGradientV with GenImageLinearGradient #3074

Merged
merged 2 commits into from
May 21, 2023
Merged

Replaced GenImageGradientH and GenImageGradientV with GenImageLinearGradient #3074

merged 2 commits into from
May 21, 2023

Conversation

danemadsen
Copy link
Contributor

This allows the user to create linear gradients with a single function. In addition to horizontal and vertical gradients this function also allows the user to create diagonal gradients and gradients in any direction in 360 degrees.

Screenshot from 2023-05-21 18-58-09
Screenshot from 2023-05-21 18-58-16
Screenshot from 2023-05-21 18-58-21

src/raylib.h Outdated Show resolved Hide resolved
@raysan5
Copy link
Owner

raysan5 commented May 21, 2023

@danemadsen Despite being a breaking change for the library, I don't think many users depend on those replaced functions so I can merge it.

Only concern is the direction parameter, it could be confusing for some users, it would require some small description on the function comment.

@raysan5 raysan5 merged commit e96dc46 into raysan5:master May 21, 2023
@raysan5
Copy link
Owner

raysan5 commented May 21, 2023

@danemadsen Thank you very much for this addition!

@danemadsen
Copy link
Contributor Author

@raysan5 My pleasure :)

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

Successfully merging this pull request may close these issues.

2 participants