<commit_before>package com.haxademic.app.haxmapper.textures;

import com.haxademic.core.app.P;
import com.haxademic.core.draw.util.DrawUtil;
import com.haxademic.core.math.MathUtil;
import com.haxademic.core.math.easing.EasingFloat;

public class TextureTwistingSquares
extends BaseTexture {
	
	protected EasingFloat _steps = new EasingFloat(50f, 6);
	
	public TextureTwistingSquares( int width, int height ) {
		super();

		buildGraphics( width, height );
		updateTimingSection();
	}
	
	public void updateDraw() {
//		_texture.clear();
		_steps.update();

		DrawUtil.setDrawCenter(_texture);
		_texture.translate( _texture.width/2, _texture.height/2, 0 );

		_texture.background(0);
		
		float steps = _steps.value();
		float oscInc = P.TWO_PI / steps;
		float lineSize = (steps/2) + 1f * P.sin( ( P.p.frameCount ) * oscInc );
		
		for( int i=100; i > 0; i-- ) {
			
			float rot = P.sin( ( P.p.frameCount + i ) * oscInc );
			
			if( i % 2 == 0 ) {
				_texture.fill( 0 );<commit_msg>Smoother lerping<commit_after>package com.haxademic.app.haxmapper.textures;

import com.haxademic.core.app.P;
import com.haxademic.core.draw.util.DrawUtil;
import com.haxademic.core.math.MathUtil;
import com.haxademic.core.math.easing.EasingFloat;

public class TextureTwistingSquares
extends BaseTexture {
	
	protected EasingFloat _steps = new EasingFloat(50f, 20);
	
	public TextureTwistingSquares( int width, int height ) {
		super();

		buildGraphics( width, height );
		updateTimingSection();
	}
	
	public void updateDraw() {
//		_texture.clear();
		_steps.update();

		DrawUtil.setDrawCenter(_texture);
		_texture.translate( _texture.width/2, _texture.height/2, 0 );

		_texture.background(0);
		
		float steps = _steps.value();
		float oscInc = P.TWO_PI / steps;
		float lineSize = (steps/2) + 1f * P.sin( ( P.p.frameCount ) * oscInc );
		
		for( int i=100; i > 0; i-- ) {
			
			float rot = P.sin( ( P.p.frameCount + i ) * oscInc );
			
			if( i % 2 == 0 ) {
				_texture.fill( 0 );
{'fraction_non_alphanumeric': 0.13765182186234817, 'fraction_numerical': 0.016700404858299597, 'mean_word_length': 3.576388888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4627850', 'n_tokens_mistral': 827, 'n_tokens_neox': 723, 'n_words': 151}