Skip to content

Commit

Permalink
Fix the direction of the file effect angle to be clockwise, matching PDN
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronwhite committed Jan 26, 2025
1 parent c794462 commit 4021637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Pinta.Effects/Effects/TileEffect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ private TileSettings CreateSettings (ImageSurface source)
float preliminaryIntensity = Data.Intensity;
int tileSize = Data.TileSize;
int antiAliasSample = ANTI_ALIAS_LEVEL * ANTI_ALIAS_LEVEL + 1;
float sin = (float) Math.Sin (rotationTheta.Radians);
float cos = (float) Math.Cos (rotationTheta.Radians);
float sin = (float) Math.Sin (-rotationTheta.Radians);
float cos = (float) Math.Cos (-rotationTheta.Radians);
return new (
size: size,
halfWidth: size.Width / 2f,
Expand Down

0 comments on commit 4021637

Please sign in to comment.