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); } } }
/* ------ 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); } } } }