Matyasf.Perlin 1.1.0

.NET Core 3.0
There is a newer version of this package available.
See the version list below for details.
dotnet add package Matyasf.Perlin --version 1.1.0
NuGet\Install-Package Matyasf.Perlin -Version 1.1.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="Matyasf.Perlin" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Matyasf.Perlin --version 1.1.0
#r "nuget: Matyasf.Perlin, 1.1.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.
// Install Matyasf.Perlin as a Cake Addin
#addin nuget:?package=Matyasf.Perlin&version=1.1.0

// Install Matyasf.Perlin as a Cake Tool
#tool nuget:?package=Matyasf.Perlin&version=1.1.0


Perlin (named from a bird) is a lightweight 2D graphics engine for .NET Core using Veldrid. It's well documented, has a simple architecture and is meant to be more as a base code for your engine than something that does everything out-of-the-box. Currently its working on Windows and OSX, in the near future I plan to get it work on Linux, Android and iOS.


  • Thanks for Veldrid it automatically chooses the ideal rendering backend for your PC (Vulkan/Metal/OpenGL/DirectX..)
  • Loads images via ImageSharp, so common formats (jpg, png, bmp, gif) are supported.
  • Uses the display tree concept (see below) to render your scene.
  • Mouse and keyboard handling code included.
  • Desktop rendering using Veldrid and SDL2.
  • Can display parts of image regions as a simple texture atlas support.

The display tree

painter's algorithm in steps. Image from Wikipedia

Perlin puts the objects to render in a display tree similar to other rendering engines (HTML rendering, Android'd UI, Microsoft's WPF,..). The root of the display tree (called Stage) has children, these can also have children and so on creating a tree data structure. Every object in the display tree is a subclass of DisplayObject, here lie the common properties, like width, height, rotation,... Transformations in the display tree are cumulative, e.g. if you set the transparency/rotation/position/scale of an object its every descendant (child, grandchild,..) will be affected as well.

The Z-order (what is rendered in front of what) is determined based on the position of the display tree. An object will be always behind its children; the order between the children is that the first child will be in the back and the last one in the front.


Copyright 2020- Matyas Forian Szabo and code contributors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use files in this project except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp3.0 is compatible.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

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.2.1 497 9/22/2020
1.2.0 456 9/17/2020
1.1.1 473 9/16/2020
1.1.0 470 9/15/2020
1.0.0 571 1/29/2020

Fix exceptions when text is empty or null
Update Veldrid and imagesharp
Fix text alignment issues