Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def drawShadowPoke(bitmap,color=nil)
- blankcolor=bitmap.get_pixel(0,0)
- shadowcolor=(color ? color : blankcolor)
- colorlayer=Bitmap.new(bitmap.width,bitmap.height)
- colorlayer.fill_rect(colorlayer.rect, shadowcolor)
- bitmap.blt(0,0,colorlayer,colorlayer.rect,113)
- shadowcolor=bitmap.get_pixel(0,0)
- for x in 0...bitmap.width
- for y in 0...bitmap.height
- if bitmap.get_pixel(x,y)==shadowcolor
- bitmap.set_pixel(x,y,blankcolor)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement