Almost all credit to @Top-script and @papipupepappa for the code, all I did was add some sine functions to control color and brightness.