fixed a bug in the legend
Add rotation to the splat noise function