9 writes to Red
Microsoft.Maui.Graphics (9)
Color.cs (9)
22
Red
= Green = Blue = 0;
27
Red
= Green = Blue = gray.Clamp(0, 1);
32
Red
= red.Clamp(0, 1);
39
Red
= red.Clamp(0, 1);
47
Red
= (red / 255f).Clamp(0, 1);
55
Red
= (red / 255f).Clamp(0, 1);
63
Red
= (red / 255f).Clamp(0, 1);
71
Red
= (red / 255f).Clamp(0, 1);
79
Red
= color.X.Clamp(0, 1);
33 references to Red
Microsoft.Maui (5)
Animations\AnimationLerpingExtensions.cs (2)
13
var r = Lerp(color.
Red
, endColor.
Red
, progress);
Platform\iOS\ColorExtensions.cs (1)
165
return new UIColor(color.
Red
, color.Green, color.Blue, color.Alpha);
Platform\iOS\MauiCALayer.cs (1)
389
colors[index] = new CGColor(new nfloat(color.
Red
), new nfloat(color.Green), new nfloat(color.Blue), new nfloat(color.Alpha));
Platform\SwipeViewExtensions.cs (1)
17
var luminosity = 0.2126f * backgroundColor.
Red
+ 0.7152f * backgroundColor.Green + 0.0722f * backgroundColor.Blue;
Microsoft.Maui.Controls (1)
Compatibility\Handlers\Shell\iOS\ShellSectionRootHeader.cs (1)
44
CollectionView.BackgroundColor = new Color(backgroundColor.
Red
, backgroundColor.Green, backgroundColor.Blue, .863f).ToPlatform();
Microsoft.Maui.Controls.Build.Tasks (1)
CompiledConverters\ColorTypeConverter.cs (1)
27
yield return Instruction.Create(OpCodes.Ldc_R4, color.
Red
);
Microsoft.Maui.Graphics (17)
Color.cs (15)
87
return $"[Color: Red={
Red
}, Green={Green}, Blue={Blue}, Alpha={Alpha}]";
94
int hashcode =
Red
.GetHashCode();
114
return "#" + ToHex(Alpha) + ToHex(
Red
) + ToHex(Green) + ToHex(Blue);
116
return "#" + ToHex(
Red
) + ToHex(Green) + ToHex(Blue);
121
return "#" + ToHex(
Red
) + ToHex(Green) + ToHex(Blue);
127
return "#" + ToHex(Alpha) + ToHex(
Red
) + ToHex(Green) + ToHex(Blue);
129
return "#" + ToHex(
Red
) + ToHex(Green) + ToHex(Blue);
135
return "#" + ToHex(
Red
) + ToHex(Green) + ToHex(Blue) + ToHex(Alpha);
137
return "#" + ToHex(
Red
) + ToHex(Green) + ToHex(Blue);
156
return new Color(
Red
, Green, Blue, alpha);
161
return new Color(
Red
, Green, Blue, Alpha * multiplyBy);
189
r = (byte)(
Red
* 255f);
196
float v = Math.Max(
Red
, Green);
198
float m = Math.Min(
Red
, Green);
518
var r =
Red
;
GradientPaint.cs (2)
250
var r = GeometryUtil.GetLinearValue(startColor.
Red
, endColor.
Red
, factor);
Microsoft.Maui.Graphics.Skia (7)
SKColorExtensions.cs (1)
9
var r = (byte)(target.
Red
* 255f);
SKGraphicsExtensions.cs (4)
12
var r = (byte)(target.
Red
* 255f);
27
var r = (int)(target.
Red
* 255f);
38
var r = (int)(target.
Red
* 255f);
48
var r = (byte)(target.
Red
* 255f);
SkiaCanvasState.cs (2)
295
var r = (byte)(_strokeColor.
Red
* 255f);
311
var r = (byte)(_fillColor.
Red
* 255f);
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (2)
src\Graphics\src\Graphics\Platforms\Windows\GraphicsExtensions.cs (2)
37
var r = (byte)(finalColor.
Red
* 255);
58
var r = (byte)(color.
Red
* 255);