Gjum / gagar

Standalone graphical agar.io Python client/bot using GTK and agarnet
GNU General Public License v3.0
21 stars 11 forks source link

Refactor drawutils #10

Closed Gjum closed 9 years ago

Gjum commented 9 years ago

I want to put in an abstraction layer to make porting the code to different GUI toolkits a lot easier.

This makes it possible to use the same code for different graphical frontends.

metalmatze commented 9 years ago

Looks good to me. But what is the c variable that's everywhere. Maybe you could rename it, to canvas, cell or whatever it is?!

Gjum commented 9 years ago

It was the cairo context, now it is an instance of Canvas.

Yeah, it should probably renamed, I was just too lazy to type canvas each time.

And I'm also not sure if canvas is a good name for the wrapper.

Gjum commented 9 years ago

Merging for now. Renaming will happen later maybe.

metalmatze commented 9 years ago

maybe

Gjum commented 9 years ago

Yeah, well, I have seen others understand the code as it is.