Beispiel #1
0
 public static byte Start(byte end, byte value, double percent) => (byte)Cap.Within(0, 255, (end - ((end - value) / percent)));
Beispiel #2
0
 public static byte End(byte start, byte value, double percent) => (byte)Cap.Within(0, 255, (((value - start) / percent) + start));
Beispiel #3
0
 public static byte Value(byte start, byte end, double percent) => (byte)Cap.Within(0, 255, (start + (percent * (end - start))));