code: private void updateColors() {
  		if (blockUpdates) {
  			return;
  		}
  		emitter.colors.clear();
  		for (int i=0;i<grad.getControlPointCount();i++) {
  			float pos = grad.getPointPos(i);
  			java.awt.Color col = grad.getColor(i);
  			Color slick = new Color(col.getRed() / 255.0f, col.getGreen() / 255.0f, col.getBlue() / 255.0f, 1.0f);
  			
  			emitter.addColorPoint(pos, slick);
  		}
  	}
docs: Update the state of the emitter based on colours in the editor