<s> from SimpleCV . base import * <EOL> from SimpleCV . ImageClass import * <EOL> from SimpleCV . Color import * <EOL> from SimpleCV . Features . Features import Feature , FeatureSet <EOL> class PlayingCard ( Feature ) : <EOL> def __init__ ( self , i , at_x , at_y , rank = None , suit = None ) : <EOL> self . rank = rank <EOL> self . suit = suit <EOL> points = [ ( at_x - <NUM_LIT:1> , at_y - <NUM_LIT:1> ) , ( at_x - <NUM_LIT:1> , at_y + <NUM_LIT:1> ) , ( at_x + <NUM_LIT:1> , at_y + <NUM_LIT:1> ) , ( at_x + <NUM_LIT:1> , at_y - <NUM_LIT:1> ) ] <EOL> super ( PlayingCard , self ) . __init__ ( i , at_x , at_y , points ) <EOL> def getCard ( self ) : <EOL> return ( self . suit , self . rank ) <EOL> def draw ( self , color = ( <NUM_LIT:255> , <NUM_LIT:0> , <NUM_LIT:0> ) , width = <NUM_LIT:1> ) : <EOL> """<STR_LIT>""" <EOL> self . image . drawCircle ( ( self . x , self . y ) , <NUM_LIT:4> , color , width ) </s>
