How to create a vertical or circular fill image effect in a 2D GUI

Thanks, @roland, but it seems it can’t work inside

var advancedTexture = BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI("UI");

using this topic: How to mask GUI image I’ve found another solution; this is exactly what I want:

but there are two issues:

  1. The arc starts to fill from the right side; I want to fill the image from the center using arc.
  2. The rectangle starts filling the image from the center, but I want to fill the image from the right or left or top or bottom.