From b57da6d14cc563fc90e1ec903ef6482a133bb5ab Mon Sep 17 00:00:00 2001
From: Ryan Oldenburg <ryan@guzba.com>
Date: Sun, 18 Jul 2021 17:22:29 -0500
Subject: [PATCH] feedback

---
 src/pixie/paints.nim | 2 +-
 src/pixie/paths.nim  | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/pixie/paints.nim b/src/pixie/paints.nim
index 62a12d4..6421c63 100644
--- a/src/pixie/paints.nim
+++ b/src/pixie/paints.nim
@@ -89,7 +89,7 @@ proc gradientPut(
       gs2.color,
       (t - gs1.position) / (gs2.position - gs1.position)
     )
-  if paint.opacity != 0:
+  if paint.opacity != 1:
     color = color.applyOpacity(paint.opacity)
   image.setRgbaUnsafe(x, y, color.rgba.rgbx())
 
diff --git a/src/pixie/paths.nim b/src/pixie/paths.nim
index e9d7d30..9fd8d8b 100644
--- a/src/pixie/paths.nim
+++ b/src/pixie/paths.nim
@@ -1798,6 +1798,9 @@ proc fillPath*(
 
   mask.fillPath(path, transform, windingRule)
 
+  # Draw the image (maybe tiled) or gradients. Do this with opaque paint and
+  # and then apply the paint's opacity to the mask.
+
   var paintOpaque = paint
   paintOpaque.opacity = 1
 
@@ -1890,6 +1893,9 @@ proc strokePath*(
     dashes
   )
 
+  # Draw the image (maybe tiled) or gradients. Do this with opaque paint and
+  # and then apply the paint's opacity to the mask.
+
   var paintOpaque = paint
   paintOpaque.opacity = 1