https://github.com/cyl18/openlg
Just a C# graphics library.
https://github.com/cyl18/openlg
Last synced: 3 months ago
JSON representation
Just a C# graphics library.
- Host: GitHub
- URL: https://github.com/cyl18/openlg
- Owner: Cyl18
- License: gpl-3.0
- Created: 2018-04-06T07:18:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-02T14:00:17.000Z (about 7 years ago)
- Last Synced: 2025-01-16T21:52:18.974Z (5 months ago)
- Language: C#
- Size: 46.9 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenLG
Just a C# graphics library using System.Drawing.Common.
## What is LG?
This guy [Lasm_Gratel](https://github.com/NanamiArihara)
## Usage
### Definition..
```csharp
public class Test1 : HorizontalLayout
{
[Margin(20, 20)]
public RenderableText Text1 { get; } = "Fork You LG1";[Margin(20, 20)]
public ICollection Text2 { get; } = new RenderableText[] { "1", "2", "3" };[Margin(20, 10)]
public RenderableText Text3 { get; } = new RenderableText("fork you lg3", Color.Aqua);[Margin(3, 3)]
public Vert Vert { get; } = new Vert();
}public class Vert : VerticalLayout
{
[Margin(20, 20)]
public RenderableText Text1 { get; } = "Fork You LGVert1";[Margin(20, 10)]
public RenderableText Text3 { get; } = new RenderableText("fork you lgvert3", Color.Aqua);
}
```### Then..
```csharp
new Test1().Render().FillBackground(Brushes.Black).Save("test.png");
```### Result..
