All Projects → Apostolique → Apos.Shapes

Apostolique / Apos.Shapes

Licence: MIT license
Shape rendering in MonoGame.

Programming Languages

C#
18002 projects
HLSL
714 projects

Projects that are alternatives of or similar to Apos.Shapes

Apos.Gui
UI library for MonoGame.
Stars: ✭ 77 (+266.67%)
Mutual labels:  nuget, monogame, apos
AposGameStarter
MonoGame project starter. Common files to help create a game faster.
Stars: ✭ 18 (-14.29%)
Mutual labels:  monogame, apos
MonoGame.SplineFlower
Create wonderful smooth Bézier-, CatMulRom- and Hermite-Splines with Trigger Events for your MonoGame project.
Stars: ✭ 18 (-14.29%)
Mutual labels:  nuget, monogame
Apos.Content
Content builder library for MonoGame.
Stars: ✭ 14 (-33.33%)
Mutual labels:  monogame, apos
MonoGame.Forms
MonoGame.Forms is the easiest way of integrating a MonoGame render window into your Windows Forms project. It should make your life much easier, when you want to create your own editor environment.
Stars: ✭ 183 (+771.43%)
Mutual labels:  nuget, monogame
Apos.input
Polling input library for MonoGame.
Stars: ✭ 25 (+19.05%)
Mutual labels:  nuget, monogame
Ecsrx
A reactive take on the ECS pattern for .net game developers
Stars: ✭ 288 (+1271.43%)
Mutual labels:  nuget, monogame
Monogame.forms
MonoGame.Forms is the easiest way of integrating a MonoGame render window into your Windows Forms project. It should make your life much easier, when you want to create your own editor environment.
Stars: ✭ 165 (+685.71%)
Mutual labels:  nuget, monogame
REstate
Portable state-flows (state-machine based workflows)
Stars: ✭ 35 (+66.67%)
Mutual labels:  nuget
OpenNFS1
Remake of the original EA Need for Speed 1 using c# and Monogame
Stars: ✭ 157 (+647.62%)
Mutual labels:  monogame
SpotifyWebApi
A .net core wrapper for the Spotify Web API
Stars: ✭ 19 (-9.52%)
Mutual labels:  nuget
aarbac
An Automated Role Based Access Control .NET framework with T-SQL Query Parser which automatically parse select, insert, update, delete queries based on the logged in user role
Stars: ✭ 18 (-14.29%)
Mutual labels:  nuget
Open-Terraria-API
Open Terraria API - Mac, Linux & Windows
Stars: ✭ 65 (+209.52%)
Mutual labels:  nuget
bitmap-sdf
Calculate SDF for image/bitmap/bw data
Stars: ✭ 25 (+19.05%)
Mutual labels:  sdf
EmptyLicensesLicx
Easy continuous integration of apps using third-party controls that rely on licenses.licx files
Stars: ✭ 57 (+171.43%)
Mutual labels:  nuget
nuget-tree
📦 [ALPHA] Shows nuget package dependencies in a hierarchy
Stars: ✭ 21 (+0%)
Mutual labels:  nuget
aframe-bmfont-text-component
A-Frame component for rendering bitmap fonts.
Stars: ✭ 62 (+195.24%)
Mutual labels:  sdf
Xamarin-Sidebar
A slideout navigation control for Xamarin.iOS
Stars: ✭ 113 (+438.1%)
Mutual labels:  nuget
Xamarin.iOS.DGActivityIndicatorView
🔰 DGActivityIndicatorView is a collection of nice loading animations for Xamarin.iOS.
Stars: ✭ 28 (+33.33%)
Mutual labels:  nuget
BlobHelper
BlobHelper is a common, consistent storage interface for Microsoft Azure, Amazon S3, Komodo, Kvpbase, and local filesystem written in C#.
Stars: ✭ 23 (+9.52%)
Mutual labels:  nuget

Apos.Shapes

Shape rendering in MonoGame.

Discord

Description

This library draws shapes using SDFs. Special thanks to Inigo Quilez for doing a lot of the work on the math functions.

Documentation

  • Coming soon!

Build

NuGet NuGet

Features

  • Circles
  • Lines
  • Rectangles
  • Hexagons
  • Filled + Borders

Usage samples

Install with:

dotnet add package Apos.Shapes

Add to your Game1.cs:

using Apos.Shapes;

// ...

_graphics.GraphicsProfile = GraphicsProfile.HiDef;

// ...

ShapeBatch _sb = new ShapeBatch(GraphicsDevice, Content);

// ...

_sb.Begin();
_sb.BorderLine(new Vector2(100, 20), new Vector2(450, -15), 20, Color.White, 2f);

_sb.DrawCircle(new Vector2(120, 120), 75, new Color(96, 165, 250), new Color(191, 219, 254), 4f);
_sb.DrawCircle(new Vector2(120, 120), 30, Color.White, Color.Black, 20f);

_sb.DrawCircle(new Vector2(370, 120), 100, new Color(96, 165, 250), new Color(191, 219, 254), 4f);
_sb.DrawCircle(new Vector2(370, 120), 40, Color.White, Color.Black, 20f);

_sb.DrawCircle(new Vector2(190, 270), 10, Color.Black, Color.White, 2f);
_sb.DrawCircle(new Vector2(220, 270), 10, Color.Black, Color.White, 2f);

_sb.FillCircle(new Vector2(235, 400), 30, new Color(220, 38, 38));
_sb.FillRectangle(new Vector2(235, 370), new Vector2(135, 60), new Color(220, 38, 38));
_sb.FillCircle(new Vector2(235, 400), 20, Color.White);
_sb.FillRectangle(new Vector2(235, 380), new Vector2(125, 40), Color.White);
_sb.End();

Other projects you might like

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].