FlatRedBall.AnimationEditorForms.Wireframe.Ruler.CreateRulerLine C# (CSharp) Method

CreateRulerLine() private method

private CreateRulerLine ( float y, float length, Color color ) : void
y float
length float
color Color
return void
        private void CreateRulerLine(float y, float length, Color color)
        {
            Line line = new Line(mManagers);
                line.X = 10 - length;
                line.Y = RenderingLibrary.Math.MathFunctions.RoundToInt(y) + .5f;

            
            line.RelativePoint = new Microsoft.Xna.Framework.Vector2(length, 0);

            line.Color = color;
            line.Z = 1;

            line.Parent = mOffsetSprite;
            mRulerLines.Add(line);
            mManagers.ShapeManager.Add(line, mLayer);
        }