Skip to content

Instantly share code, notes, and snippets.

@lufeihaidao
Created April 13, 2014 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lufeihaidao/10589345 to your computer and use it in GitHub Desktop.
Save lufeihaidao/10589345 to your computer and use it in GitHub Desktop.
Q9 of python challenge
require "RMagick"
img = Magick::ImageList.new 'good.jpg'
gc = Magick::Draw.new
gc.fill('#CC6600')
gc.polygon(*first_list)
gc.fill('white')
gc.polygon(*second_list)
gc.draw(img)
img.display
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment