You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CsConsumer Gradients demo uses a radial gradient brush and a linear gradient brush, both of which are created with CanvasEdgeBehavior::Wrap. This causes the edge of the drawn shapes to show an undesirable border (in the case of the circle, a bad-looking dark border; in the case of the rectangle, a thin red line in the purple end).
IMHO using CanvasEdgeBehavior::Clamp by default would make more sense, and I already have a fix that does that in my fork. I'll send a PR shortly.
Here's a screenshot of the circle looking particularly bad:
The text was updated successfully, but these errors were encountered:
davidni
changed the title
Gradient brushed are created with CanvasEdgeBehavior::Wrap by default
Gradient brushes are created with CanvasEdgeBehavior::Wrap by default
Oct 24, 2014
The CsConsumer Gradients demo uses a radial gradient brush and a linear gradient brush, both of which are created with
CanvasEdgeBehavior::Wrap
. This causes the edge of the drawn shapes to show an undesirable border (in the case of the circle, a bad-looking dark border; in the case of the rectangle, a thin red line in the purple end).IMHO using
CanvasEdgeBehavior::Clamp
by default would make more sense, and I already have a fix that does that in my fork. I'll send a PR shortly.Here's a screenshot of the circle looking particularly bad:
The text was updated successfully, but these errors were encountered: