/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.opensim.threejs;

import org.opensim.modeling.GeometryPath;
import org.opensim.modeling.State;
import org.opensim.modeling.Vec3;

/**
 *
 * @author Ayman-NMBL
 * 
 * Default ColorMap for earlier versions of OpenSim red-to-blue 0-1
 *  RGB components scales linearly
 */
public class LegacyPathColorMap implements PathColorMap {

    @Override
    public Vec3 getColor(GeometryPath path, State state, double activation) {
        if (activation > 0.){
            
        }
        return path.getColor(state);
    }
    
}

@@ -653,16 +653,61 @@
         
+return new Vec3(activation, 0, 1-activation);
 %0A       

Fix handling of Color when using LegacyPathColorMap