<commit_before>package ch.nectoria.components;

import luxe.Sprite;
import luxe.Color;

class Fader extends luxe.Component
{

	var overlay: Sprite;

	override function init()
	{
		overlay = new Sprite(
		{
			size: Luxe.screen.size,
			color: new Color(0,0,0,0),
			centered: false,
			depth:99<commit_msg>Separate batcher for Fader<commit_after>package ch.nectoria.components;

import luxe.Sprite;
import luxe.Color;
import phoenix.Batcher;
import phoenix.Camera;

class Fader extends luxe.Component
{

	public var overlay: Sprite;
	public static var faderBatcher:Batcher;

	override function init()
	{
		faderBatcher = new Batcher(Luxe.renderer,'fader_batcher');
		faderBatcher.view = new Camera();
		faderBatcher.layer = 10;
		Luxe.renderer.add_batch(faderBatcher);
		
		overlay = new Sprite(
		{
			size: Luxe.screen.size,
			color: new Color(0,0,0,0),
			centered: false,
			batcher: faderBatcher,
			depth:99
{'fraction_non_alphanumeric': 0.1061269146608315, 'fraction_numerical': 0.015317286652078774, 'mean_word_length': 4.414201183431953, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4023218', 'n_tokens_mistral': 370, 'n_tokens_neox': 330, 'n_words': 76}