public Color32 GetColor(int index, BaseAxisTheme theme)
 {
     if (color.Count > 0)
     {
         var i = index % color.Count;
         return(color[i]);
     }
     else
     {
         var i = index % theme.splitAreaColors.Count;
         return(theme.splitAreaColors[i]);
     }
 }
 public void Copy(BaseAxisTheme theme)
 {
     base.Copy(theme);
     m_LineType        = theme.lineType;
     m_LineWidth       = theme.lineWidth;
     m_LineLength      = theme.lineLength;
     m_LineColor       = theme.lineColor;
     m_SplitLineType   = theme.splitLineType;
     m_SplitLineWidth  = theme.splitLineWidth;
     m_SplitLineLength = theme.splitLineLength;
     m_SplitLineColor  = theme.splitLineColor;
     m_TickWidth       = theme.tickWidth;
     m_TickLength      = theme.tickLength;
     m_TickColor       = theme.tickColor;
     ChartHelper.CopyList(m_SplitAreaColors, theme.splitAreaColors);
 }