Cleanerer

This commit is contained in:
y4my4my4m 2023-05-31 02:05:08 +09:00
parent 3f64a301e7
commit 18e545dfe8
2 changed files with 3 additions and 12 deletions

View file

@ -433,8 +433,7 @@ public U0 PaletteEditor()
LFBFlush;
break;
case 'R':
gr_palette[selected_color] = PaletteGod(FALSE, TRUE);
LFBFlush;
PaletteGod(FALSE, TRUE);
break;
case CH_CTRLI:
PopUpOk("\n\n Use the arrows to select color\n\n # to manually input hex value","\n\n\n\t\tMade by y4my4m\n\n");

View file

@ -1,29 +1,21 @@
CBGR24 ColorGod(Bool seedUse=TRUE, Bool instant=TRUE)
{
// Generate a random color, seed-based or not
if (seedUse)
Seed(GodPick);
if (instant || seedUse)
{
return RandI32 & 0xFFFFFF;
}
else {
else
return GodPick & 0xFFFFFF;
}
}
public U0 PaletteGod(Bool seedUse=TRUE, Bool instant=TRUE)
{
// Generate a random palette, seed-based or not
I64 i;
for (i=0; i < 16; i++)
{
gr_palette[i] = ColorGod(seedUse, instant);
LFBFlush;
}
LFBFlush;
}
// PaletteGod;