simplified fill or stroke code