Is there a way to create a gradient in FXRuby? If so, how would I implement it?
I have tried looking at https://www.rubydoc.info/gems/fxruby/Fox/FXImage and it didn't make much sense to me, If I could get elaboration on what #gradient
means and how to use it, that would be great.
According to the docs here's how you would use the method, but first you'll need to install and require the gem
Then in your code:
You'll need to pass the RGB colors you want to use for the actual gradient but here's an example of the syntax
See here for examples of colors