Set state hatch fill parameter as a function
a