Skip to content
Proyek

Tentang

Cross-platform Graphics Library for .NET

Desain dan media

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
0
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

CrossGraphics

CrossGraphics aims to deliver a simple immediate mode interface for drawing graphics on a variety of platforms running .NET.

Currently the following platforms are supported:

Installation

dotnet add package CrossGraphics

Using the library

The interface CrossGraphics.IGraphics is the recipient of all drawing commands.

You should now code your objects to be able to draw themselves by being passed and IGraphics object.

Drawing commands include:

  • Rectangles using FillRect and DrawRect
  • Rounded Rectangles using FillRoundedRect and DrawRoundedRect
  • Ovals using FillOval and DrawOval
  • Lines using DrawLine and the option BeginLine and EndLine primitives
  • Images using DrawImage
  • Text using DrawString and the associated font functions

Development

  • Run Acceptance Tests on macOS
dotnet build atests/CrossGraphicsAcceptanceTests.csproj && ./atests/bin/Debug/net10.0-maccatalyst/maccatalyst-arm64/CrossGraphicsAcceptanceTests.app/Contents/MacOS/CrossGraphicsAcceptanceTests $(pwd)

License

The code is copyright Frank A. Krueger and is released under the MIT license.

Jelajahi proyek terkait

Memuat…