public static uint Random(uint color, uint delta) { uint r = (color >> 16) & 255; uint g = (color >> 8) & 255; uint b = color & 255; r = (uint)(r + (int)(Maths.Random() * (float)delta)); g = (uint)(g + (int)(Maths.Random() * (float)delta)); b = (uint)(b + (int)(Maths.Random() * (float)delta)); return(Colors.GetCropColor(r, g, b)); }
public static float RandomWithDelta(float averidge, float delta) { return(averidge + Maths.Random() * delta); }