- 611 名前:デフォルトの名無しさん [2019/09/13(金) 23:44:37.81 ID:aO4dryeFa.net]
- >>597
やってみた public partial class Form1 : Form { private Stopwatch mStopwatch = new Stopwatch(); public Form1() { InitializeComponent(); } private Color BlendColor(Color a, Color b, double pos) { Func<int, int, int> blend = (i, j) => { var x = Math.Round((1 - pos) * i + pos * j, 0); return Math.Min(255, (int)x); }; var A = blend(a.A, b.A); var R = blend(a.R, b.R); var G = blend(a.G, b.G); var B = blend(a.B, b.B); return Color.FromArgb(A, R, G, B); }
|

|