private Color ScaleTerran(float val, TerranValues vals) { Color color; float single = this._boundsMax - this._boundsMin; if (val <= this._boundsMax * vals.waterLevel) { color = vals.waterColor; } else if (val <= this._boundsMax * vals.beachLevel) { color = vals.beachColor; } else if (val <= this._boundsMax * vals.grassLevel) { color = vals.grassColor; } else if (val > this._boundsMax * vals.moutainLevel) { color = (val > this._boundsMax * vals.snowLevel ? Color.Red : vals.snowColor); } else { color = vals.moutainColor; } return(color); }
public Render2D() { this._settings = new TerranValues(); }