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

Opacity property not specified properly #20

Open
ghost opened this issue Feb 28, 2022 · 1 comment
Open

Opacity property not specified properly #20

ghost opened this issue Feb 28, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 28, 2022

In Ruby 2d - Colors#Opacity, it hasn't been mentioned whether the opacity attribute is applicable for the object, or the color type. It would be great if this can be expanded. I've tried with the object, but it throws an error.

@WillianChuLive
Copy link

if the opacity attribute doesn't work as
square.opacity= 0.8

try this way
square = Square.new(x: 10, y: 20, size: 25, color: 'blue', opacity: 0.5)

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

1 participant