Пример #1
0
 public Border(Margins margins, Color color)
 {
     Margins = margins;
     Color   = color;
 }
Пример #2
0
 public static Border Lerp(Border from, Border to, float v)
 {
     v = Mathf.Clamp01(v);
     return(new Border(Margins.Lerp(from.Margins, to.Margins, v), Color.Lerp(from.Color, to.Color, v)));
 }
Пример #3
0
 public Style()
 {
     Margin  = new Margins();
     Border  = new Border();
     Padding = new Margins();
 }