1
0

implement GCIRCLE X,Y,R,C

This commit is contained in:
otya128
2016-12-02 22:12:39 +09:00
parent a6a205c4c0
commit b7234a1c6e
2 changed files with 72 additions and 25 deletions

View File

@@ -321,10 +321,18 @@ class BuiltinFunction
color.setDefaultValue(p.gcolor);
p.gfill(p.useGRP, x, y, x2, y2, cast(int)color);
}
static void GCIRCLE(PetitComputer p, Value[])
//X,Y,R[,COLOR]
//X,Y,R,SR,ER[,COLOR]
static void GCIRCLE(PetitComputer p, int x, int y, int r, DefaultValue!(int, false) color)
{
//color.setDefaultValue(p.gcolor);
//p.gfill(p.useGRP, x, y, x2, y2, cast(int)color);
color.setDefaultValue(p.gcolor);
p.gcircle(p.useGRP, x, y, r, 0, 360, 0, cast(int)color);
}
static void GCIRCLE(PetitComputer p, int x, int y, int r, int sr, int er, DefaultValue!(int, false) flag, DefaultValue!(int, false) color)
{
color.setDefaultValue(p.gcolor);
flag.setDefaultValue(0);
p.gcircle(p.useGRP, x, y, r, sr, er, cast(int)flag, cast(int)color);
}
static void GCOLOR(PetitComputer p, int color)
{