#2 √ resolved
John Croisant

Surface#set_at does not respect alpha.

Reported by John Croisant | October 23rd, 2009 @ 02:38 AM

Surface#set_at ignores alpha when setting the pixel color.

>> s = Rubygame::Surface.new([1,1])

=> #

>> s.get_at([0,0])

=> [0, 0, 0, 0]

>> s.set_at([0,0], [255,0,0,100])

=> #

>> s.get_at([0,0])

=> [255, 0, 0, 255]

It should set the pixel alpha to exactly the alpha given, or default to 255 (full opacity) if alpha is omitted.

Comments and changes to this ticket

  • John Croisant

    John Croisant October 23rd, 2009 @ 02:40 AM

    • → Milestone cleared.
    • → Tag changed from “” to “@bug surface”
    • → State changed from “new” to “resolved”

    This is fixed in Rubygame 2.6. However, issue #10 can still cause trouble because Surfaces may not have an alpha channel even if they were supposed to.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Flexible library for making games with the Ruby language.

rubygame.sourceforge.net

Shared Ticket Bins

People watching this ticket

Tags

You can update this ticket by sending an email to from your email client. (help)