public void SetIntensity(int val) { this.intensity = val; this.color = ColorPallete.GetColorInteger(this.intensity); }