Page 1 of 1

transparent primitives

PostPosted: Sun Mar 06, 2011 3:47 pm
by nkoehring
Hello,

ich want to draw circles (or better: "discs") but cannot get the undrawed parts transparent. What I have to do?

Re: transparent primitives

PostPosted: Tue Mar 08, 2011 11:29 am
by sgrevan
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