“GNOME Canvas is a powerful graphics tool that can help you
present data, build games, and much more. Following up his
previous columns in which he showed you how to build the code and a
GUI for a basic genealogy program, developerWorks columnist George
Lebl introduces you to GNOME Canvas by constructing a simple
graphical game in this tutorial.”
“Last month you learned how to store things on disk with
XML….In this month’s installment, we look at how to present your
data graphically using the GNOME Canvas. But the canvas doesn’t
have to be used for graphics only; if the standard widgets don’t
fit your needs, you may want to use the canvas.”
“For example, the gnumeric spreadsheet uses the canvas instead
of a widget to draw the actual spreadsheet. However, we will work
with a slightly more fun example: a game called Piskvorky. OK,
that’s not fair — that’s the Czech name. In English it’s usually
called Gomoku. It’s basically tic-tac-toe played on a larger board,
and you have to connect 5 of your marks to win. We will not put any
intelligence into the code, and we’ll let the user play both
sides.”
Complete Story
Web Webster
Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.