Example #1
0
 public void SetOpacity(float o)
 {
     for (int i = 0; i < layers.Length; i++)
     {
         for (int j = 0; j < layers[i].shapes.Length; j++)
         {
             MovinShape s = layers[i].shapes[j];
             s.UpdateOpacity(o * 100f);
         }
     }
 }
Example #2
0
    /* ------ PUBLIC METHODS ------ */


    public void SetColor(Color c, bool fill = true, bool stroke = false)
    {
        for (int i = 0; i < layers.Length; i++)
        {
            for (int j = 0; j < layers[i].shapes.Length; j++)
            {
                MovinShape s = layers[i].shapes[j];

                if (fill)
                {
                    s.UpdateFillColor(c, true);
                }

                if (stroke)
                {
                    s.UpdateStrokeColor(c, true);
                }
            }
        }
    }