BlastSparkle

public sealed class BlastSparkle : ISparkle
An explosive like sparkle.

Constructors

BlastSparkle

#
public BlastSparkle(BlastRadius radius, PointF location, Color colour, bool attachedToContent)
Create a new sparkle.
radius (BlastRadius)Flavour.
location (PointF)Location.
colour (Color)Colour.
attachedToContent (bool)Content vs. Control.

BlastSparkle

#
public BlastSparkle(BlastRadius radius, PointF location, Color colour)
Create a new sparkle in content-space. If the sparkle needs to exist in control-space, use the other constructor which accepts a space boolean.
radius (BlastRadius)Flavour.
location (PointF)Location.
colour (Color)Colour.

Properties

AttachedToContent

#
public bool AttachedToContent { get; }
Gets whether this sparkle is attached to the control content.

Colour

#
public Color Colour { get; }
Gets the colour of this sparkle.

End

#
public DateTime End { get; }
Gets the end time of this sparkle. The end time depends on start time and flavour duration.

Location

#
public PointF Location { get; }
Gets the location of this sparkle.

Radius

#
public BlastRadius Radius { get; }
Gets the flavour of this sparkle.

Sparkling

#
public bool Sparkling { get; }
Gets whether this sparkle is still busy sparkling.
Sparkling

Start

#
public DateTime Start { get; }
Gets the start time of this sparkle.

Methods

Draw

#
public void Draw(ControlGraphics graphics)
Draw this sparkle to a graphics context.
graphics (ControlGraphics)Context to draw in.
Draw