AudioAsset
Ease
FastString
FontAsset
NineSlice
PackedSprite
PackedSpriteID
RB
   HardwareSettings
   IRetroBlitGame
RBAsset
Rect2i
ShaderAsset
SoundReference
SpriteGrid
SpriteSheetAsset
TMXMapAsset
   TMXLayer
   TMXLayerLoadState
   TMXObject
   TMXObjectGroup
   TMXProperties
Vector2i

RB.DrawEllipseInvertedFill

Method  -  Static

public static void DrawEllipseInvertedFill(Vector2i center, Vector2i radius, Color32 color)

Parameters

center Vector2i Center position
radius Vector2i Radius
color Color32 Color

Returns

Nothing.

Description

Draw an inversely filled ellipse with the given center, a horizontal and vertical radius given by radius, and the given color.

An inversely filled ellipse occupies the space not filled by a normal ellipse. This can be useful for a variety of effects such as simulating a torch light around a player by using a combination of RB.DrawEllipseInvertedFill and RB.DrawRectFill to cover up an area further away from the player.


Normally filled orange ellipse drawn with RB.DrawEllipseFill


Inversely filled orange ellipse drawn with RB.DrawEllipseInvertedFill

Example

void Render() {
    RB.DrawEllipseInvertedFill(new Vector2i(10050), new Vector2i(4020), Color.white));
}

See Also

RB.DrawEllipseInvertedFill
RB.DrawEllipse

See Docs

Features - Primitives