def images_red (name): # [frozen, active, activated, pressed]. # assume the image is white and colour it appropriately. return [touchgui.image_gui ("chessimages/%s.png" % (name)).white2rgb (.65, .1, .2, .9), touchgui.image_gui ("chessimages/%s.png" % (name)).white2rgb (.65, .1, .2, .9), touchgui.image_gui ("chessimages/%s.png" % (name)).white2rgb (.65, .1, .2, .9), touchgui.image_gui ("chessimages/%s.png" % (name)).white2rgb (.65, .1, .2, .9)]
def combat_list(name): return [ touchgui.image_gui("images/%s.png" % (name)).white2grey(.5), touchgui.image_gui("images/%s.png" % (name)).white2grey(.1), touchgui.image_gui("images/%s.png" % (name)), touchgui.image_gui("images/%s.png" % (name)).white2rgb(.1, .2, .4) ]
def chess_black (name): # [frozen, active, activated, pressed]. name = name.upper () # use the white piece and colour it appropriately. return [touchgui.image_gui ("chessimages/%s.png" % (name)).white2rgb (.1, .1, .1, .9), touchgui.image_gui ("chessimages/%s.png" % (name)).white2rgb (.2, .2, .2, .9), touchgui.image_gui ("chessimages/%s.png" % (name)).white2rgb (.4, .4, .4, .9), touchgui.image_gui ("chessimages/%s.png" % (name)).white2rgb (.3, .05, .1, .9)]
def button_list(name): return [ touchgui.image_gui(imagedir("images/PNG/White/2x/%s.png") % (name)).white2grey(.5), touchgui.image_gui(imagedir("images/PNG/White/2x/%s.png") % (name)).white2grey(.1), touchgui.image_gui(imagedir("images/PNG/White/2x/%s.png") % (name)), touchgui.image_gui(imagedir("images/PNG/White/2x/%s.png") % (name)).white2rgb(.1, .2, .4) ]
def image_list(name): return [ touchgui.image_gui("images/PNG/White/2x/%s.png" % (name)).white2grey(.5), touchgui.image_gui("images/PNG/White/2x/%s.png" % (name)).white2grey(.1), touchgui.image_gui("images/PNG/White/2x/%s.png" % (name)), touchgui.image_gui("images/PNG/White/2x/%s.png" % (name)).white2rgb( .1, .2, .4) ]
def chess_white (name): # [frozen, active, activated, pressed]. return [touchgui.image_gui ("chessimages/%s.png" % (name)).white2rgb (.5, .5, .5, .9), touchgui.image_gui ("chessimages/%s.png" % (name)).white2rgb (.6, .6, .6, .9), touchgui.image_gui ("chessimages/%s.png" % (name)).white2rgb (1, 1, 1, .9), touchgui.image_gui ("chessimages/%s.png" % (name)).white2rgb (.1, .35, .6, .9)]