9 writes to Green
Microsoft.Maui.Graphics (9)
Color.cs (9)
22 Red = Green = Blue = 0; 27 Red = Green = Blue = gray.Clamp(0, 1); 33 Green = green.Clamp(0, 1); 40 Green = green.Clamp(0, 1); 48 Green = (green / 255f).Clamp(0, 1); 56 Green = (green / 255f).Clamp(0, 1); 64 Green = (green / 255f).Clamp(0, 1); 72 Green = (green / 255f).Clamp(0, 1); 80 Green = color.Y.Clamp(0, 1);
33 references to Green
Microsoft.Maui (3)
Animations\AnimationLerpingExtensions.cs (2)
15 var g = Lerp(color.Green, endColor.Green, progress);
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)
28 yield return Instruction.Create(OpCodes.Ldc_R4, color.Green);
Microsoft.Maui.Controls.Compatibility (2)
iOS\Renderers\SwipeViewRenderer.cs (1)
677 var luminosity = 0.2126 * backgroundColor.Red + 0.7152 * backgroundColor.Green + 0.0722 * backgroundColor.Blue;
iOS\Shapes\ShapeRenderer.cs (1)
553 colors[index] = new CGColor(new nfloat(color.Red), new nfloat(color.Green), new nfloat(color.Blue), new nfloat(color.Alpha));
Microsoft.Maui.Graphics (17)
Color.cs (15)
87 return $"[Color: Red={Red}, Green={Green}, Blue={Blue}, Alpha={Alpha}]"; 95 hashcode = (hashcode * 397) ^ Green.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); 190 g = (byte)(Green * 255f); 196 float v = Math.Max(Red, Green); 198 float m = Math.Min(Red, Green); 519 var g = Green;
GradientPaint.cs (2)
251 var g = GeometryUtil.GetLinearValue(startColor.Green, endColor.Green, factor);
Microsoft.Maui.Graphics.Skia (7)
SKColorExtensions.cs (1)
10 var g = (byte)(target.Green * 255f);
SKGraphicsExtensions.cs (4)
13 var g = (byte)(target.Green * 255f); 28 var g = (int)(target.Green * 255f); 39 var g = (int)(target.Green * 255f); 49 var g = (byte)(target.Green * 255f);
SkiaCanvasState.cs (2)
296 var g = (byte)(_strokeColor.Green * 255f); 312 var g = (byte)(_fillColor.Green * 255f);
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (2)
src\Graphics\src\Graphics\Platforms\Windows\GraphicsExtensions.cs (2)
38 var g = (byte)(finalColor.Green * 255); 59 var g = (byte)(color.Green * 255);