updated demo to pass in stroke as params