AssetBundleGraph.GraphBackground.DrawGridLines C# (CSharp) Method

DrawGridLines() private method

private DrawGridLines ( float gridSize, Color gridColor ) : void
gridSize float
gridColor Color
return void
        private void DrawGridLines(float gridSize, Color gridColor)
        {
            GL.Color (gridColor);
            for (float x = m_graphRegion.xMin - (m_graphRegion.xMin % gridSize) - m_scrollPosition.x; x < m_graphRegion.xMax; x += gridSize) {
                if(x < m_graphRegion.xMin) {
                    continue;
                }
                DrawLine (new Vector2 (x, m_graphRegion.yMin), new Vector2 (x, m_graphRegion.yMax));
            }
            GL.Color (gridColor);
            for (float y = m_graphRegion.yMin - (m_graphRegion.yMin % gridSize) - m_scrollPosition.y; y < m_graphRegion.yMax; y += gridSize) {
                if(y < m_graphRegion.yMin) {
                    continue;
                }
                DrawLine (new Vector2 (m_graphRegion.xMin, y), new Vector2 (m_graphRegion.xMax, y));
            }
        }