Thanks!! Nice first try at CodeLab!
Just a cleanup and a small enhancement to your code, as it seemed to me (from your code) that you were trying to use BrushWidth:
int Amount1=10; //[2,100]Line Spacing
int Amount2=1; //[1,2]Vertical <-> Horizontal
void Render(Surface dst, Surface src, Rectangle rect)
{
ColorBgra PrimaryColor = (ColorBgra)EnvironmentParameters.PrimaryColor;
int BrushWidth = (int)EnvironmentParameters.BrushWidth;
for(int y = rect.Top; y < rect.Bottom; y++)
{
for (int x = rect.Left; x < rect.Right; x++)
{
ColorBgra CurrentPixel = src[x,y];
if(Amount2 == 1)
{
if ((x % Amount1) < BrushWidth)
CurrentPixel = PrimaryColor;
}
else
{
if ((y % Amount1) < BrushWidth)
CurrentPixel = PrimaryColor;
}
dst[x,y] = CurrentPixel;
}
}
}