forked from: マウスで描いた線が動く with union

