Fix the saturation on the main menu background.

This commit is contained in:
EliteMasterEric 2024-04-15 19:21:55 -04:00
parent 7644ce1019
commit 4d1f60434a

View file

@ -58,7 +58,11 @@ class MainMenuState extends MusicBeatState
persistentDraw = true; persistentDraw = true;
var bg = FunkinSprite.create('menuDesat'); var bg = FunkinSprite.create('menuDesat');
bg.color = 0xFFFDE871; bg.color = 0xFFFDE871;
// This line accounts for the fact that the base color of menuDesat is #EFEFEF.
flixel.util.FlxColorTransformUtil.setOffsets(bg.colorTransform, 30, 27, 13, 0.0);
bg.scrollFactor.x = 0; bg.scrollFactor.x = 0;
bg.scrollFactor.y = 0.17; bg.scrollFactor.y = 0.17;
bg.setGraphicSize(Std.int(bg.width * 1.2)); bg.setGraphicSize(Std.int(bg.width * 1.2));