Vendily

auto huev2

Aug 4th, 2017
148
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def drawShadowPoke(bitmap,color=nil)
  2.   blankcolor=bitmap.get_pixel(0,0)
  3.   shadowcolor=(color ? color : blankcolor)
  4.     colorlayer=Bitmap.new(bitmap.width,bitmap.height)
  5.   colorlayer.fill_rect(colorlayer.rect, shadowcolor)
  6.   bitmap.blt(0,0,colorlayer,colorlayer.rect,113)
  7.   shadowcolor=bitmap.get_pixel(0,0)
  8.   for x in 0...bitmap.width
  9.     for y in 0...bitmap.height
  10.       if bitmap.get_pixel(x,y)==shadowcolor
  11.         bitmap.set_pixel(x,y,blankcolor)
  12.       end
  13.     end
  14.   end
  15. end
RAW Paste Data