mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Axe RGBflip() in favor of getRGB()
RGBflip() does the exact same thing as getRGB(), now that all the surface masks have been fixed. This axes RGBflip() and changes all callers to use getRGB() instead. It is more readable that way. By doing this, there is less copy-pasting. Additionally, it is now easier to search for RGBf() - which is an ENTIRELY different function than RGBflip() - now that the name of RGBf is no longer the first four characters of some different, unrelated function. Previously I would've had to do `rg 'RGBf[^\w]'` which was stupid and awful and I hated it.
This commit is contained in:
@@ -54,32 +54,32 @@ void preloaderrender(void)
|
||||
if(pre_transition>=30){
|
||||
switch(pre_curcol) {
|
||||
case 0:
|
||||
pre_lightcol = graphics.RGBflip(0xBF,0x59,0x6F);
|
||||
pre_darkcol = graphics.RGBflip(0x88,0x3E,0x53);
|
||||
pre_lightcol = graphics.getRGB(0xBF,0x59,0x6F);
|
||||
pre_darkcol = graphics.getRGB(0x88,0x3E,0x53);
|
||||
break;
|
||||
case 1:
|
||||
pre_lightcol = graphics.RGBflip(0x6C,0xBC,0x5C);
|
||||
pre_darkcol = graphics.RGBflip(0x50,0x86,0x40);
|
||||
pre_lightcol = graphics.getRGB(0x6C,0xBC,0x5C);
|
||||
pre_darkcol = graphics.getRGB(0x50,0x86,0x40);
|
||||
break;
|
||||
case 2:
|
||||
pre_lightcol = graphics.RGBflip(0x5D,0x57,0xAA);
|
||||
pre_darkcol = graphics.RGBflip(0x2F,0x2F,0x6C);
|
||||
pre_lightcol = graphics.getRGB(0x5D,0x57,0xAA);
|
||||
pre_darkcol = graphics.getRGB(0x2F,0x2F,0x6C);
|
||||
break;
|
||||
case 3:
|
||||
pre_lightcol = graphics.RGBflip(0xB7,0xBA,0x5E);
|
||||
pre_darkcol = graphics.RGBflip(0x84,0x83,0x42);
|
||||
pre_lightcol = graphics.getRGB(0xB7,0xBA,0x5E);
|
||||
pre_darkcol = graphics.getRGB(0x84,0x83,0x42);
|
||||
break;
|
||||
case 4:
|
||||
pre_lightcol = graphics.RGBflip(0x57,0x90,0xAA);
|
||||
pre_darkcol = graphics.RGBflip(0x2F,0x5B,0x6C);
|
||||
pre_lightcol = graphics.getRGB(0x57,0x90,0xAA);
|
||||
pre_darkcol = graphics.getRGB(0x2F,0x5B,0x6C);
|
||||
break;
|
||||
case 5:
|
||||
pre_lightcol = graphics.RGBflip(0x90,0x61,0xB1);
|
||||
pre_darkcol = graphics.RGBflip(0x58,0x3D,0x71);
|
||||
pre_lightcol = graphics.getRGB(0x90,0x61,0xB1);
|
||||
pre_darkcol = graphics.getRGB(0x58,0x3D,0x71);
|
||||
break;
|
||||
default:
|
||||
pre_lightcol = graphics.RGBflip(0x00,0x00,0x00);
|
||||
pre_darkcol = graphics.RGBflip(0x08,0x00,0x00);
|
||||
pre_lightcol = graphics.getRGB(0x00,0x00,0x00);
|
||||
pre_darkcol = graphics.getRGB(0x08,0x00,0x00);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user