//mutate model public void mutate(IFormConfiguration formConfig, ColourConfiguration colourConfig) { //if we are receiving null configs then this is rendering on scene and not current brush //so use local configs if (formConfig == null) { formConfig = localFormConfig; } if (colourConfig == null) { colourConfig = localColourConfig; } //increment colour once for each trunk colourConfig.incrementDisplayColour(); //increment pulse once for each trunk colourConfig.incrementPulseCount(); FormProcessor formProcessor = formConfig.getFormProcessor(); formBounds = new FormBounds(formConfig.getStartPosition()); formProcessor.mutateTrunk(branches, formBounds, formConfig, colourConfig); }