<commit_before>
#include "Cooper3dText.h"
#include "appConstants.h"
float distToCameraToFit(const ofRectangle &r, const ofCamera& cam){
    
    
  //  ofRectangle v(0,0,VISUALS_WIDTH, VISUALS_HEIGHT);
    
    ofRectangle rr(r);
    rr.scaleFromCenter(1.1);
    float h = ((rr.width/rr.height)>=1)?rr.width:rr.height;
    float d = h / (2.0f * tanf(PI * cam.getFov()/ 360.0f)) ;
//    cout << d << endl;
    return d;
}

//--------------------------------------------------------------
void Cooper3dText::setup(){
    
    
    font.load("Helvetica Neue", 50, true, true, true);
    
    
    distWords = 60;

//    parameters.add(distWords.set("Distance Blocks",40,  0, 4000));
    parameters.add(tweenDuration.set("Tween Duration", 3000,0,10000));
    parameters.add(pauseDuration.set("Pause Duration", 200,0,5000));
    parameters.add(minAngle.set("min angle", 80,0, 360));
    parameters.add(maxAngle.set("max angle", 120, 0,360));

    maxAngle.addListener(this, &Cooper3dText::angleChanged);
    minAngle.addListener(this, &Cooper3dText::angleChanged);
    
    setupSurfaces();
    <commit_msg>Cooper3dText> added animateScene set to false and scene duration set to correct amount<commit_after>
#include "Cooper3dText.h"
#include "appConstants.h"
float distToCameraToFit(const ofRectangle &r, const ofCamera& cam){
    
    
  //  ofRectangle v(0,0,VISUALS_WIDTH, VISUALS_HEIGHT);
    
    ofRectangle rr(r);
    rr.scaleFromCenter(1.1);
    float h = ((rr.width/rr.height)>=1)?rr.width:rr.height;
    float d = h / (2.0f * tanf(PI * cam.getFov()/ 360.0f)) ;
//    cout << d << endl;
    return d;
}

//--------------------------------------------------------------
void Cooper3dText::setup(){
    sceneDuration = 113;
    bAnimateScene = false;
    
    font.load("Helvetica Neue", 50, true, true, true);
    
    
    distWords = 60;

//    parameters.add(distWords.set("Distance Blocks",40,  0, 4000));
    parameters.add(tweenDuration.set("Tween Duration", 3000,0,10000));
    parameters.add(pauseDuration.set("Pause Duration", 200,0,5000));
    parameters.add(minAngle.set("min angle", 80,0, 360));
    parameters.add(maxAngle.set("max angle", 120, 0,360));

    maxAngle.addListener(this, &Cooper3dText::angleChanged);
    minAngle.addListener(this, &Cooper3dText::angleChanged);
    
    setupSurfaces();
    
{'fraction_non_alphanumeric': 0.20352839931153185, 'fraction_numerical': 0.050774526678141134, 'mean_word_length': 2.862126245847176, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 6, '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': '5616192', 'n_tokens_mistral': 889, 'n_tokens_neox': 796, 'n_words': 148}