Question: Write a function called: generateChessBoard(size, color): which creates a new image of a chess board. The squares on the board should be size pixels wide,
Write a function called: generateChessBoard(size, color): which creates a new image of a chess board. The squares on the board should be size pixels wide, and the color of the none-white squares should be color. Display the board on the screen with show() and return the new image with return().
Please finish this by using Jython
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
