radial_gradient is now actually working.

This commit is contained in:
Creeper Lv
2026-01-24 01:39:36 +11:00
parent 48e7e54db3
commit f1c556839f
2 changed files with 3 additions and 1 deletions

View File

@@ -86,6 +86,7 @@ namespace Progrart.Core.JSExecution
var sy = (float)jsObject.Get("Center").Get("y").AsNumber();
var s = context.TranslatePoint(sx, sy);
var radius = (float)jsObject.Get("Radius").AsNumber();
radius = context.TranslateSize(radius);
SKColor C0 = SKColors.Black;
SKColor C1 = SKColors.White;
float p0 = 0;