Gorgon
Show / Hide Table of Contents

Class MarchingAnts

Draws a marching ants effect for a rectangle.

Inheritance
object
MarchingAnts
Implements
IMarchingAnts
IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Editor.Rendering
Assembly: Gorgon.Editor.API.dll
Syntax
public class MarchingAnts : IMarchingAnts, IDisposable

Constructors

| Edit this page View Source

MarchingAnts(Gorgon2D)

Initializes a new instance of the MarchingAnts class.

Declaration
public MarchingAnts(Gorgon2D renderer)
Parameters
Type Name Description
Gorgon2D renderer

The 2D renderer for the application.

Methods

| Edit this page View Source

Animate()

Function to animate the marching ants.

Declaration
public void Animate()
| Edit this page View Source

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()
| Edit this page View Source

Draw(RectangleF)

Function to draw the marching ants rectangle.

Declaration
public void Draw(RectangleF rect)
Parameters
Type Name Description
RectangleF rect

The rectangular region to draw in.

Implements

IMarchingAnts
IDisposable

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author