Working on the project editor.

Implemented a very basic version of command line tool.
This commit is contained in:
Creeper Lv
2026-01-11 03:54:14 +11:00
parent 609e51d375
commit 1bcaff76b2
19 changed files with 452 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ using SkiaSharp;
namespace Progrart.Core.Graphics
{
public class Path : BaseElement
public class Path : BaseElement
{
SKPath path = new SKPath();
public SKPath RealPath => path;
@@ -16,10 +16,12 @@ namespace Progrart.Core.Graphics
{
__object.Set("line_to", JsValue.FromObject(engine, (object)line_to));
__object.Set("move_to", JsValue.FromObject(engine, (object)move_to));
__object.Set("quad_to", JsValue.FromObject(engine, (object)quad_to));
}
}
void line_to(float x, float y) => Commands.Add(new LineToCmd(x, y));
void move_to(float x, float y) => Commands.Add(new MoveToCmd(x, y));
void quad_to(float x0, float y0, float x1, float y1) => Commands.Add(new QuadToCmd(x0, y0, x1, y1));
public override void Render(RenderContext context)
{