Artemis.Profiles.Layers.Types.Audio.AudioType.SetupHorizontal C# (CSharp) Method

SetupHorizontal() private method

private SetupHorizontal ( AudioPropertiesModel settings ) : void
settings AudioPropertiesModel
return void
        private void SetupHorizontal(AudioPropertiesModel settings)
        {
            _lines = (int) settings.Height;
            for (var i = 0; i < _lines; i++)
            {
                var layer = LayerModel.CreateLayer();
                layer.Properties.X = settings.X;
                layer.Properties.Y = settings.Y + i;
                layer.Properties.Width = 0;
                layer.Properties.Height = 1;
                layer.LayerAnimation = new NoneAnimation();
                layer.Properties.Brush = settings.Brush;
                layer.Properties.Contain = false;

                _audioLayers.Add(layer);
                layer.Update(null, false, true);
            }
        }