convert equations to canvas format