what does the 255, currForm.PrieColor.R + 5; 255, currForm.PrieColor.R – 5; 255, 0, currForm.PriceColor.G + 5; 255, 0, currForm.PriceColor.G – 5 means

Determine (a) the company’s profit margin and (b) the company’s gross margin.
January 4, 2018
The business has sufficient funds to meet all capital expenditure requirements:Calculate for each project
January 4, 2018

what does the 255, currForm.PrieColor.R + 5; 255, currForm.PrieColor.R – 5; 255, 0, currForm.PriceColor.G + 5; 255, 0, currForm.PriceColor.G – 5 means

I need help understanding what each line is doing. Studying for a quiz. All I know is that when the price increase/decrease the color changes. But what does the 255, currForm.PrieColor.R + 5; 255, currForm.PrieColor.R – 5; 255, 0, currForm.PriceColor.G + 5; 255, 0, currForm.PriceColor.G – 5 means.

Here is the code:

class pulseColor
{
private MainForm currForm;

public void pulse(MainForm currForm)
{
this.currForm = currForm;

if (currForm.rfade == true && currForm.PriceColor.R <= 250)
{
currForm.PriceColor = Color.FromArgb(255, currForm.PriceColor.R + 5, 0, 0);
}
else if (currForm.PriceColor.R > 0)
{
currForm.PriceColor = Color.FromArgb(255, currForm.PriceColor.R – 5, 0, 0);
}
if (currForm.PriceColor.R == 255)
{
currForm.rfade = false;
}

if (currForm.gfade == true && currForm.PriceColor.G <= 250)
{
currForm.PriceColor = Color.FromArgb(255, 0, currForm.PriceColor.G + 5, 0);
}
else if (currForm.PriceColor.G > 0)
{
currForm.PriceColor = Color.FromArgb(255, 0, currForm.PriceColor.G – 5, 0);
}
if (currForm.PriceColor.G == 255)
{
currForm.gfade = false;
}
}
}
}

 

"Is this question part of your assignment? We Can Help!"

Essay Writing Service