Chroma 0.61.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Chroma --version 0.61.0
                    
NuGet\Install-Package Chroma -Version 0.61.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Chroma" Version="0.61.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Chroma" Version="0.61.0" />
                    
Directory.Packages.props
<PackageReference Include="Chroma" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Chroma --version 0.61.0
                    
#r "nuget: Chroma, 0.61.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Chroma@0.61.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Chroma&version=0.61.0
                    
Install as a Cake Addin
#tool nuget:?package=Chroma&version=0.61.0
                    
Install as a Cake Tool

Chroma Framework

Chroma is a 2D game development framework focused on quick prototyping.

Change log

Changes in release 0.61.0
  • Added Vector2 and Vector3 constructors for Camera class.
  • Added a convenient way to cut a sub-texture out of a larger texture.
  • Removed obsolete overloads for RenderTo, WithCamera and Batch RenderContext calls.
Changes in release 0.60.1
  • Added extension methods overloading Rumble and RumbleTriggers for ControllerDriver allowing use of float values in range 0.0-1.0.
  • Updated SDL_gpu to draw pixel-perfect lines and rectangles, thanks to Avahe Kellenberger.
  • Linux native dependencies will now properly target the built-in SDL library instead of the system one.
  • Added RenderContext overloads for RenderTo, WithCamera and Batch aiming to reduce closure allocation on call. The old overloads are now obsolete and will be removed in release 0.61.

Usage

Simply reference this package and use the following template to get started:
GameCore.cs

using System.Numerics;
using Chroma;
using Chroma.Graphics;

namespace MyGame
{
  public class GameCore : Game
  {
    public GameCore()
      : base(new(false, false))
    {
    }

    protected override void Draw(RenderContext context)
      => context.DrawString("Hello, world!", new Vector2(16, 16));
  }
}

Program.cs

using System;

namespace MyGame
{
  static class Program
  {
    static void Main(string[] args)
      => new GameCore.Run();
  }
}

Examples of how to use Chroma's can be found in the example repository.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on Chroma:

Package Downloads
Chroma.SabreVGA

VGA emulator for Chroma Framework to aid in creation of text-based games.

Chroma.Audio.Sfxr

Sfxr playback engine for Chroma Framework

Chroma.FlexTerm

Flexible terminal emulator based on the SabreVGA text engine.

Chroma.Shine

Various utilities that make life easier but don't quite fit into the core of Chroma Framework.

Chroma.Commander

Simple, comfortable and powerful debugging console for games made using Chroma Framework.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.68.0 171 3/26/2026
0.67.1 122 3/26/2026
0.67.0 149 3/15/2026
0.66.0 443 5/23/2025
0.65.2 378 1/1/2025
0.65.1 361 10/31/2024
0.65.0 357 7/31/2024
0.64.0 468 5/27/2024
0.63.2 340 5/26/2024
0.63.1 346 5/13/2024
0.63.0 295 5/13/2024
0.62.2 375 3/9/2024
0.62.1 358 1/21/2024
0.62.0 322 1/21/2024
0.61.1 412 1/1/2024
0.61.0 510 9/9/2023
0.60.1 548 8/25/2023
0.60.0 624 8/9/2023
0.57.1 571 12/8/2022
0.57.0 669 8/23/2022
Loading failed