Chroma 0.66.0
dotnet add package Chroma --version 0.66.0
NuGet\Install-Package Chroma -Version 0.66.0
<PackageReference Include="Chroma" Version="0.66.0" />
<PackageVersion Include="Chroma" Version="0.66.0" />
<PackageReference Include="Chroma" />
paket add Chroma --version 0.66.0
#r "nuget: Chroma, 0.66.0"
#:package Chroma@0.66.0
#addin nuget:?package=Chroma&version=0.66.0
#tool nuget:?package=Chroma&version=0.66.0
Chroma Framework
Chroma is a 2D game development framework focused on quick prototyping.
Change log
Changes in release 0.66.0
- SDL updated to 2.32.6
- FreeType2 updated to 2.13.3
- Added
BootHintsclass to allow users to specify pre-boot SDL hints without having to rely on boot.json modifications.
Changes in release 0.65.2
- SDL updated to 2.30.10
- Active development resuming in hopes of moving to SDL3 this year.
Changes in release 0.65.1
- SDL updated to 2.30.8
- System.Text.JSON updated to 6.0.10
Changes in release 0.65.0
- Updates to some diagnostic strings.
- SDL updated to 2.30.5
- Fixed a bug where garbage collected
DisposableResourceobjects would be disposed outside of the main thread. - Dropped support for .NET 6, move to .NET 7.
- Added nullability annotations to the API.
Changes in release 0.64.0
Game.LoadContent()callback has been refactored toGame.Initialize(IContentPipeline)Game.Contentproperty has been removed. It has been replaced byGame.Initialize(IContentPipeline).HookPoint.LoadContenthas been renamed toHookPoint.Initialize.- Certain prefix hook methods may now mutate input callback arguments if used with
refmodifier. - Fixed a bug where initialization hook point was never invoked.
Changes in release 0.63.2
- Linux natives will now work properly with PulseAudio
Changes in release 0.63.1
- Linux natives will now initialize properly.
Changes in release 0.63.0 [//! Broken on Linux !//]
- Natives are now built automatically using GitHub Actions.
- MacOS support is now ARM64 only. This might change in the future.
- Updated SDL for all platforms to version 2.30.3
- Updated FreeType for all platforms do version 2.13.2
- Added
FreeTypeExceptionexception type to classify TTF rendering errors. - Added error checks for FreeType native call failures.
Changes in release 0.62.2
Window.SaveScreenshot(Stream)no longer destroys the stream after it's done taking a screenshot.
Changes in release 0.62.1
- Actions returning values can now also use non-reference types.
Changes in release 0.62.0
Dispatcherwas extended to allow execution of tasks from non-async callers.- Actions scheduled to run on main thread can now return values.
Changes in release 0.61.1
Gamebase class now implementsIDisposable.Gamebase class now exposesprotected void OnDispose()that is called at the beginning ofDispose()method execution.
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,WithCameraandBatchRenderContext calls.
Changes in release 0.60.1
- Added extension methods overloading
RumbleandRumbleTriggersforControllerDriverallowing 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
RenderContextoverloads forRenderTo,WithCameraandBatchaiming 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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 is compatible. 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. |
-
net7.0
- System.Text.Json (>= 7.0.4)
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.66.0 | 300 | 5/23/2025 | |
| 0.65.2 | 287 | 1/1/2025 | |
| 0.65.1 | 253 | 10/31/2024 | |
| 0.65.0 | 266 | 7/31/2024 | |
| 0.64.0 | 369 | 5/27/2024 | |
| 0.63.2 | 248 | 5/26/2024 | |
| 0.63.1 | 245 | 5/13/2024 | |
| 0.63.0 | 197 | 5/13/2024 | |
| 0.62.2 | 285 | 3/9/2024 | |
| 0.62.1 | 267 | 1/21/2024 | |
| 0.62.0 | 219 | 1/21/2024 | |
| 0.61.1 | 315 | 1/1/2024 | |
| 0.61.0 | 463 | 9/9/2023 | |
| 0.60.1 | 494 | 8/25/2023 | |
| 0.60.0 | 576 | 8/9/2023 | |
| 0.57.1 | 510 | 12/8/2022 | |
| 0.57.0 | 587 | 8/23/2022 | |
| 0.56.1 | 557 | 8/11/2022 | |
| 0.56.0 | 726 | 8/8/2022 | |
| 0.54.2 | 770 | 4/13/2022 | |
| 0.54.1 | 627 | 4/1/2022 | |
| 0.54.0 | 701 | 4/1/2022 | |
| 0.53.0 | 610 | 3/23/2022 | |
| 0.52.2 | 642 | 2/17/2022 | |
| 0.52.1 | 596 | 2/1/2022 | |
| 0.52.0 | 862 | 1/6/2022 | |
| 0.51.0 | 986 | 11/10/2021 | |
| 0.50.0 | 1,100 | 10/6/2021 | |
| 0.49.4 | 554 | 9/9/2021 | |
| 0.49.3 | 566 | 9/9/2021 | |
| 0.49.1 | 520 | 9/2/2021 | |
| 0.49.0 | 531 | 8/31/2021 | |
| 0.48.0 | 1,225 | 8/22/2021 | |
| 0.47.0 | 513 | 8/12/2021 | |
| 0.46.1 | 514 | 8/11/2021 | |
| 0.46.0 | 518 | 8/10/2021 | |
| 0.45.0 | 532 | 8/10/2021 | |
| 0.44.0 | 517 | 7/25/2021 | |
| 0.43.0 | 1,145 | 7/23/2021 | |
| 0.42.0 | 549 | 7/19/2021 | |
| 0.41.0 | 576 | 6/4/2021 | |
| 0.40.1 | 975 | 3/24/2021 | |
| 0.40.0 | 537 | 3/23/2021 | |
| 0.39.1 | 553 | 3/22/2021 | |
| 0.39.0 | 923 | 3/22/2021 | |
| 0.38.1 | 1,036 | 3/10/2021 | |
| 0.38.0 | 564 | 3/9/2021 | |
| 0.37.4 | 943 | 3/4/2021 | |
| 0.37.3 | 617 | 2/27/2021 | |
| 0.37.2 | 560 | 2/25/2021 | |
| 0.37.0 | 926 | 2/15/2021 | |
| 0.36.0 | 537 | 2/13/2021 | |
| 0.35.1 | 572 | 2/13/2021 | |
| 0.35.0 | 592 | 2/13/2021 | |
| 0.34.0 | 990 | 2/11/2021 | |
| 0.33.0 | 594 | 2/9/2021 | |
| 0.32.0 | 672 | 2/4/2021 | |
| 0.31.0 | 585 | 1/26/2021 | |
| 0.30.0 | 541 | 1/25/2021 | |
| 0.29.0 | 563 | 1/24/2021 | |
| 0.28.0 | 562 | 1/19/2021 | |
| 0.27.3 | 1,024 | 12/22/2020 | |
| 0.27.2 | 688 | 12/22/2020 | |
| 0.27.1 | 586 | 12/16/2020 | |
| 0.27.0 | 843 | 12/15/2020 | |
| 0.26.0 | 613 | 11/20/2020 | |
| 0.25.0 | 598 | 11/12/2020 | |
| 0.24.0 | 597 | 11/11/2020 | |
| 0.23.5 | 719 | 11/2/2020 | |
| 0.23.4 | 712 | 11/1/2020 | |
| 0.23.2 | 621 | 11/1/2020 | |
| 0.23.1 | 647 | 11/1/2020 | |
| 0.23.0 | 699 | 11/1/2020 | |
| 0.22.0 | 643 | 10/31/2020 | |
| 0.21.2 | 1,138 | 10/21/2020 | |
| 0.21.1 | 661 | 10/20/2020 | |
| 0.21.0 | 1,201 | 10/14/2020 | |
| 0.20.0 | 2,074 | 9/19/2020 | |
| 0.19.0 | 658 | 9/18/2020 | |
| 0.18.0 | 730 | 9/18/2020 | |
| 0.17.1 | 901 | 7/29/2020 | |
| 0.17.0 | 743 | 7/25/2020 | |
| 0.16.2 | 757 | 7/19/2020 | |
| 0.16.1 | 627 | 7/16/2020 | |
| 0.16.0 | 717 | 7/14/2020 | |
| 0.15.0 | 839 | 7/11/2020 | |
| 0.14.0-alpha | 547 | 6/30/2020 | |
| 0.13.0-alpha | 501 | 6/24/2020 | |
| 0.12.0-alpha | 539 | 6/23/2020 | |
| 0.11.0-alpha | 538 | 6/22/2020 | |
| 0.10.0-alpha | 519 | 6/21/2020 | |
| 0.9.0-alpha | 744 | 5/31/2020 | |
| 0.8.1-alpha | 547 | 5/28/2020 | |
| 0.8.0-alpha | 538 | 5/27/2020 | |
| 0.7.0-alpha | 535 | 5/25/2020 | |
| 0.6.0-alpha | 553 | 5/25/2020 | |
| 0.5.0-alpha | 563 | 5/23/2020 | |
| 0.4.0-alpha | 564 | 5/19/2020 | |
| 0.3.2-alpha | 567 | 5/16/2020 | |
| 0.3.1-alpha | 570 | 5/15/2020 | |
| 0.3.0-alpha | 527 | 5/12/2020 | |
| 0.2.1-alpha | 730 | 5/11/2020 | |
| 0.2.0-alpha | 515 | 5/10/2020 | |
| 0.1.3-alpha | 506 | 5/10/2020 | |
| 0.1.2-alpha | 532 | 5/10/2020 | |
| 0.1.1-alpha | 572 | 5/10/2020 | |
| 0.1.0-alpha | 543 | 5/10/2020 |