Blazorex 0.0.5
See the version list below for details.
dotnet add package Blazorex --version 0.0.5
NuGet\Install-Package Blazorex -Version 0.0.5
<PackageReference Include="Blazorex" Version="0.0.5" />
paket add Blazorex --version 0.0.5
#r "nuget: Blazorex, 0.0.5"
// Install Blazorex as a Cake Addin #addin nuget:?package=Blazorex&version=0.0.5 // Install Blazorex as a Cake Tool #tool nuget:?package=Blazorex&version=0.0.5
Blazorex
Description
Blazorex is an HTML Canvas wrapper library for Blazor, written with .NET 6.
Installation
Blazorex can be installed as Nuget package: https://www.nuget.org/packages/Blazorex/
Usage
Simply add the Canvas
Component to your Razor page and register to the OnCanvasReady
to receive the IRenderContext
instance.
Then use OnFrameReady
to define your update/rendere logic:
<Canvas Width="800" Height="600"
OnFrameReady="(t) => OnFrameReady(t)"
OnCanvasReady="(ctx) => OnCanvasReady(ctx)" />
@code{
IRenderContext _context;
private void OnCanvasReady(IRenderContext context)
{
_context = context;
}
private void OnFrameReady(float timeStamp)
{
// your render logic goes here
}
}
You might also need to update your index.html
to include the library's CSS:
<head>
<link href="_content/Blazorex/blazorex.css" rel="stylesheet" />
</head>
For a complete sample, check the ./src/Blazorex.Web folder.
A sample game can be found here: Blazeroids
Product | Versions 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. |
-
net6.0
- Microsoft.AspNetCore.Components.Web (>= 6.0.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.1.3 | 243 | 1/20/2025 |
1.1.2 | 285 | 12/16/2024 |
1.1.1 | 114 | 11/19/2024 |
1.1.0 | 121 | 9/25/2024 |
1.0.4 | 375 | 6/27/2024 |
1.0.3 | 247 | 12/31/2023 |
1.0.2 | 215 | 9/5/2023 |
1.0.1 | 232 | 6/13/2023 |
1.0.0 | 179 | 6/13/2023 |
0.0.5 | 539 | 10/3/2022 |
0.0.4 | 462 | 10/3/2022 |
0.0.3 | 450 | 9/19/2022 |
0.0.2 | 446 | 9/19/2022 |
0.0.1 | 463 | 9/19/2022 |