mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-01-18 18:46:43 +00:00
Add sides arg to gpu.drawCircle
This commit is contained in:
parent
e606dfee95
commit
38478b3359
1 changed files with 3 additions and 2 deletions
|
@ -281,10 +281,11 @@ public class GPU : IComponent
|
||||||
var y = (int)L.CheckNumber(2) - 1;
|
var y = (int)L.CheckNumber(2) - 1;
|
||||||
var rad = (int)L.CheckNumber(3);
|
var rad = (int)L.CheckNumber(3);
|
||||||
var c = L.CheckInteger(4);
|
var c = L.CheckInteger(4);
|
||||||
var s = (int)L.OptNumber(5, 1);
|
var t = (int)L.OptNumber(5, 1);
|
||||||
|
var s = (int)L.OptInteger(6, -1);
|
||||||
|
|
||||||
Utils.UnpackRGB((uint)c, out var r, out var g, out var b);
|
Utils.UnpackRGB((uint)c, out var r, out var g, out var b);
|
||||||
_game.Drawing.DrawCircle(new(x, y), rad, new Color(r, g, b), s);
|
_game.Drawing.DrawCircle(new(x, y), rad, new Color(r, g, b), t, s);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue