-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Alpha is always opaque #26
Comments
from https://www.libsdl.org/release/SDL-1.2.15/docs/html/sdlfillrect.html
But I'm also using SGE, so I'll poke in there as well. This would definitely be one area where upgrading to SDL 2 would be worth it in the long run... But DAMN is it poorly documented and shitty. |
It also appears that |
require "graphics"
class Bug026 < Graphics::Simulation
def initialize
super 400, 300, 32
register_color :b0, 255, 0, 0, 0
register_color :b1, 255, 0, 0, 1
register_color :b2, 255, 0, 0, 128
register_color :b3, 255, 0, 0, 255
end
def draw iteration
clear
rect 50, 100, 300, 50, :white, :filled
rect 75, 50, 50, 150, :b0, :filled
rect 150, 50, 50, 150, :b1, :filled
rect 225, 50, 50, 150, :b2, :filled
rect 300, 50, 50, 150, :b3, :filled
# self.done = true
end
end
Bug026.new.run if $0 == __FILE__ |
this is fixed for your immediate problem, but requires reworking basically all of the drawing primitives. |
This is handled, yes? |
It's fixed on Github, but not in the released gem. |
Kk. I'm gonna close this. I'm not too far from a release? I don't think? I dunno. I'm mentarbating a bit on some of the color stuffs. |
Per suggestion I'm moving this comment to a new issue :P Note that this diff was applied locally.
Alpha is still not responding (it's always fully opaque). Note that it's not responding on
rect
orpoint
, eitiher. Alpha also doesn't work on 24 bpp, though there is code in there to support it. Alpha is handled differently from all the other channels, it gets passed in as its own arg. I assume it works in general, because I assume anti aliasing uses it, but I couldn't think of an example that would make it obvious. The one below shows that it is always opaque.The text was updated successfully, but these errors were encountered: