CreateColorSwatchWithBorder() private static method

private static CreateColorSwatchWithBorder ( int width, int height, bool triangular ) : Texture2D
width int
height int
triangular bool
return UnityEngine.Texture2D
 private void Init()
 {
     if (this.m_ColorSwatch == null)
     {
         this.m_ColorSwatch = ColorPresetLibrary.CreateColorSwatchWithBorder(14, 14, false);
     }
     if (this.m_ColorSwatchTriangular == null)
     {
         this.m_ColorSwatchTriangular = ColorPresetLibrary.CreateColorSwatchWithBorder(14, 14, true);
     }
     if (this.m_MiniColorSwatchTriangular == null)
     {
         this.m_MiniColorSwatchTriangular = ColorPresetLibrary.CreateColorSwatchWithBorder(8, 8, true);
     }
     if (this.m_CheckerBoard == null)
     {
         this.m_CheckerBoard = GradientEditor.CreateCheckerTexture(2, 2, 3, new Color(0.8f, 0.8f, 0.8f), new Color(0.5f, 0.5f, 0.5f));
     }
 }