Skip to content

Commit

Permalink
fix - Fixed Diamond not showing a diamond
Browse files Browse the repository at this point in the history
---

We've fixed the Diamond screensaver not showing the diamond.

---

Type: fix
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Feb 23, 2024
1 parent 8453f0f commit 210a1fb
Showing 1 changed file with 38 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public override void ScreensaverLogic()

// Determine the color by draw mode
var finalColor = drawingEdge ? selectedColor : colorShaded;
buffer.Append(TextWriterWhereColor.RenderWhere(" ", left, top, Color.Empty, finalColor));
buffer.Append(TextWriterWhereColor.RenderWhereColorBack(" ", left, top, Color.Empty, finalColor));
}
}

Expand All @@ -135,7 +135,7 @@ public override void ScreensaverLogic()

// Determine the color by draw mode
var finalColor = drawingEdge ? selectedColor : colorShaded;
buffer.Append(TextWriterWhereColor.RenderWhere(" ", left, top, Color.Empty, finalColor));
buffer.Append(TextWriterWhereColor.RenderWhereColorBack(" ", left, top, Color.Empty, finalColor));
}
}

Expand Down Expand Up @@ -204,24 +204,24 @@ public override void ScreensaverLogic()
Color colCenter = new((int)currentCenterR, (int)currentCenterG, (int)currentCenterB);
Color colRest = new((int)currentRestR, (int)currentRestG, (int)currentRestB);
buffer.Append(
TextWriterWhereColor.RenderWhere(" ", shinePlaceX, shinePlaceY, Color.Empty, colCenter) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX, shinePlaceY + 1, Color.Empty, colBottom) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX, shinePlaceY + 2, Color.Empty, colBottom) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX, shinePlaceY - 1, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX, shinePlaceY - 2, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX - 1, shinePlaceY, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX - 2, shinePlaceY, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX + 1, shinePlaceY, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX + 2, shinePlaceY, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX2, shinePlaceY2, Color.Empty, colCenter) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX2, shinePlaceY2 + 1, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX2, shinePlaceY2 + 2, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX2, shinePlaceY2 - 1, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX2, shinePlaceY2 - 2, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX2 - 1, shinePlaceY2, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX2 - 2, shinePlaceY2, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX2 + 1, shinePlaceY2, Color.Empty, colBottom) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX2 + 2, shinePlaceY2, Color.Empty, colBottom)
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX, shinePlaceY, Color.Empty, colCenter) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX, shinePlaceY + 1, Color.Empty, colBottom) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX, shinePlaceY + 2, Color.Empty, colBottom) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX, shinePlaceY - 1, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX, shinePlaceY - 2, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX - 1, shinePlaceY, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX - 2, shinePlaceY, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX + 1, shinePlaceY, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX + 2, shinePlaceY, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2, shinePlaceY2, Color.Empty, colCenter) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2, shinePlaceY2 + 1, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2, shinePlaceY2 + 2, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2, shinePlaceY2 - 1, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2, shinePlaceY2 - 2, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2 - 1, shinePlaceY2, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2 - 2, shinePlaceY2, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2 + 1, shinePlaceY2, Color.Empty, colBottom) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2 + 2, shinePlaceY2, Color.Empty, colBottom)
);

// Now, write the diamond buffer
Expand Down Expand Up @@ -252,24 +252,24 @@ public override void ScreensaverLogic()
Color colCenter = new((int)currentCenterR, (int)currentCenterG, (int)currentCenterB);
Color colRest = new((int)currentRestR, (int)currentRestG, (int)currentRestB);
buffer.Append(
TextWriterWhereColor.RenderWhere(" ", shinePlaceX, shinePlaceY, Color.Empty, colCenter) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX, shinePlaceY + 1, Color.Empty, colBottom) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX, shinePlaceY + 2, Color.Empty, colBottom) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX, shinePlaceY - 1, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX, shinePlaceY - 2, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX - 1, shinePlaceY, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX - 2, shinePlaceY, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX + 1, shinePlaceY, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX + 2, shinePlaceY, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX2, shinePlaceY2, Color.Empty, colCenter) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX2, shinePlaceY2 + 1, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX2, shinePlaceY2 + 2, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX2, shinePlaceY2 - 1, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX2, shinePlaceY2 - 2, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX2 - 1, shinePlaceY2, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX2 - 2, shinePlaceY2, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX2 + 1, shinePlaceY2, Color.Empty, colBottom) +
TextWriterWhereColor.RenderWhere(" ", shinePlaceX2 + 2, shinePlaceY2, Color.Empty, colBottom)
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX, shinePlaceY, Color.Empty, colCenter) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX, shinePlaceY + 1, Color.Empty, colBottom) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX, shinePlaceY + 2, Color.Empty, colBottom) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX, shinePlaceY - 1, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX, shinePlaceY - 2, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX - 1, shinePlaceY, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX - 2, shinePlaceY, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX + 1, shinePlaceY, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX + 2, shinePlaceY, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2, shinePlaceY2, Color.Empty, colCenter) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2, shinePlaceY2 + 1, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2, shinePlaceY2 + 2, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2, shinePlaceY2 - 1, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2, shinePlaceY2 - 2, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2 - 1, shinePlaceY2, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2 - 2, shinePlaceY2, Color.Empty, colRest) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2 + 1, shinePlaceY2, Color.Empty, colBottom) +
TextWriterWhereColor.RenderWhereColorBack(" ", shinePlaceX2 + 2, shinePlaceY2, Color.Empty, colBottom)
);

// Now, write the diamond buffer
Expand Down

0 comments on commit 210a1fb

Please sign in to comment.