public void buildDataModel() { setName("TwoTone"); redLight = new AnimatedValue(255.0f, 0.0f, 255.0f); greenLight = new AnimatedValue(120.0f, 0.0f, 255.0f); blueLight = new AnimatedValue(255.0f, 0.0f, 255.0f); redDark = new AnimatedValue(0.0f, 0.0f, 255.0f); greenDark = new AnimatedValue(0.0f, 0.0f, 255.0f); blueDark = new AnimatedValue(0.0f, 0.0f, 255.0f); redLight.setParamName("Red Light"); greenLight.setParamName("Green Light"); blueLight.setParamName("Blue Light"); redDark.setParamName("Red Dark"); greenDark.setParamName("Green Dark"); blueDark.setParamName("Blue Dark"); registerParameter(redLight); registerParameter(greenLight); registerParameter(blueLight); registerParameter(redDark); registerParameter(greenDark); registerParameter(blueDark); }
public void buildDataModel() { setName("CurveShape"); red1 = new AnimatedValue(255.0f, 0.0f, 255.0f); green1 = new AnimatedValue(255.0f, 0.0f, 255.0f); blue1 = new AnimatedValue(255.0f, 0.0f, 255.0f); red2 = new AnimatedValue(0.0f, 0.0f, 255.0f); green2 = new AnimatedValue(0.0f, 0.0f, 255.0f); blue2 = new AnimatedValue(0.0f, 0.0f, 255.0f); red1.setParamName("Red Fill"); green1.setParamName("Green Fill"); blue1.setParamName("Blue Fill"); red2.setParamName("Red Stroke"); green2.setParamName("Green Stroke"); blue2.setParamName("Blue Stroke"); registerPathParams(); registerParameter(red1); registerParameter(green1); registerParameter(blue1); registerParameter(red2); registerParameter(green2); registerParameter(blue2); registerParameter(lineWidth); registerParameter(fillOn); }