Forums Archived

The forums are being archived. See this topic for more information.

transparent primitives

Get help and support with Rubygame

transparent primitives

Postby nkoehring » Sun Mar 06, 2011 3:47 pm

Hello,

ich want to draw circles (or better: "discs") but cannot get the undrawed parts transparent. What I have to do?
nkoehring
 
Posts: 4
Joined: Sun Mar 06, 2011 3:25 pm

Re: transparent primitives

Postby sgrevan » Tue Mar 08, 2011 11:29 am

Hello,

Have you tried something like this ?

Code: Select all
surf = Rubygame::Surface.new( [200, 200] )
surf.fill( [255, 0, 255] )
surf.draw_circle_s( [100, 100], [100, 100], :white )
surf.colorkey = [255, 0, 255]

# Blit surf on screen

sgrevan
 
Posts: 6
Joined: Wed Jan 12, 2011 5:32 pm
Location: France


Return to Help & Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron