public void SetupProperties(LayerModel layerModel)
{
if (layerModel.Properties is KeyPressPropertiesModel)
return;
// Setup brush as a radial
layerModel.Properties = new KeyPressPropertiesModel(layerModel.Properties)
{
Brush = new RadialGradientBrush(new GradientStopCollection
{
new GradientStop(Colors.Red, 0.85),
new GradientStop(Color.FromArgb(0, 255, 0, 0), 0.95),
new GradientStop(Colors.Red, 0.55),
new GradientStop(Color.FromArgb(0, 255, 0, 0), 0.45)
})
};
// Setup defaults
((KeyPressPropertiesModel) layerModel.Properties).AnimationSpeed = 2.5;
((KeyPressPropertiesModel) layerModel.Properties).Scale = 8;
}