C# Class Com.Aurora.AuWeather.Effects.ThunderGenerator

通过直线生成闪电,并添加发光效果,初始化间隔和每个闪电持续时间 在画布上半部生成
Exibir arquivo Open project: aurora-lzzp/Aurora-Weather Class Usage Examples

Public Methods

Method Description
Draw ( ICanvasAnimatedControl sender, Microsoft.Graphics.Canvas.CanvasDrawingSession drawingSession ) : void
Generate ( System.Numerics.Vector2 size ) : void

在任意位置,生成一道闪电

ThunderGenerator ( ) : Com.Aurora.Shared.Helpers
Update ( float elapsedTime, System.Numerics.Vector2 size ) : void

控制亮度

Private Methods

Method Description
InitializeConstants ( ) : void

Method Details

Draw() public method

public Draw ( ICanvasAnimatedControl sender, Microsoft.Graphics.Canvas.CanvasDrawingSession drawingSession ) : void
sender ICanvasAnimatedControl
drawingSession Microsoft.Graphics.Canvas.CanvasDrawingSession
return void

Generate() public method

在任意位置,生成一道闪电
public Generate ( System.Numerics.Vector2 size ) : void
size System.Numerics.Vector2
return void

ThunderGenerator() public method

public ThunderGenerator ( ) : Com.Aurora.Shared.Helpers
return Com.Aurora.Shared.Helpers

Update() public method

控制亮度
public Update ( float elapsedTime, System.Numerics.Vector2 size ) : void
elapsedTime float
size System.Numerics.Vector2
return void