linear gradient is now working.

This commit is contained in:
Creeper Lv
2026-01-24 01:14:58 +11:00
parent 14de38a329
commit 48e7e54db3
18 changed files with 58 additions and 58 deletions

View File

@@ -33,7 +33,7 @@ namespace Progrart.Core.Graphics
}
}
public override void LoadProperties()
public override void LoadProperties(RenderContext context)
{
if (__object is not null)
{
@@ -54,13 +54,13 @@ namespace Progrart.Core.Graphics
}
if (__object.Get("Shader") is JsObject shaderObj)
shader = ProgrartConversion.ObtainFromJsObject(shaderObj);
shader = ProgrartConversion.ObtainFromJsObject(context,shaderObj);
}
}
public override void Render(RenderContext context)
{
base.Render(context);
LoadProperties();
LoadProperties(context);
SKPoint pos = context.TranslatePoint(Position);
float Size = context.TranslateSize(this.Size);
context.DrawingCore.canvas.DrawCircle(