def set_theme_advanced(self, theme_name, brightness=<NUM_LIT:1.0>,<EOL>saturation=<NUM_LIT:1.0>, hue=<NUM_LIT:1.0>,<EOL>preserve_transparency=True, output_dir=None,<EOL>advanced_name="<STR_LIT>"):
if not self.png_support:<EOL><INDENT>raise RuntimeError("<STR_LIT>")<EOL><DEDENT>if theme_name not in self.pixmap_themes:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if theme_name not in self.themes:<EOL><INDENT>raise ValueError("<STR_LIT>".format(theme_name))<EOL><DEDENT>if advanced_name in self.themes:<EOL><INDENT>raise RuntimeError("<STR_LIT>")<EOL><DEDENT>output_dir = os.path.join(utils.get_temp_directory(), advanced_name) if output_dir is None else output_dir<EOL>self._setup_advanced_theme(theme_name, output_dir, advanced_name)<EOL>image_directory = os.path.join(output_dir, advanced_name, advanced_name)<EOL>self._setup_images(image_directory, brightness, saturation, hue, preserve_transparency)<EOL>with utils.temporary_chdir(output_dir):<EOL><INDENT>self.tk.call("<STR_LIT>", "<STR_LIT>", "<STR_LIT>".format(output_dir))<EOL>self.tk.eval("<STR_LIT>")<EOL>self.set_theme(advanced_name)<EOL><DEDENT>
Load an advanced theme that is dynamically created

Applies the given modifiers to the images of the theme given and
then creates a theme from these new images with the name
'advanced' and then applies this theme. Is not available without
support for PNG-based themes, then raises RuntimeError.