HearthStats/hearthstats — pull request #326 by Ricardonacif (2014-07-25 21:44:48+00:00)
Title: Profile Image Generator

I've added the profile image generator to the code. To use it, simply pass a hash like this to the constructor:

user = {
name: 'Username',
const_win_rate: "32.2%",
arena_win_rate: "69%",
ranking: 25,
legend: true
}

image = ProfileImage.new(user).image

In order to see the image, simply do:

image.write('test.png')