Skip to content

Commit

Permalink
[pdf] fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitkugler committed Aug 26, 2024
1 parent aee072f commit a326a51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdf/pdf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ func TestGradientOp(t *testing.T) {
page.State().Transform(matrix.New(1, 0, 0, -1, 0, 200)) // PDF uses "mathematical conventions"

page.Rectangle(10, 10, 50, 50)
page.State().SetColorRgba(parser.RGBA{0, 0, 1, 1}, false)
page.State().SetColorRgba(parser.RGBA{R: 0, G: 0, B: 1, A: 1}, false)

alpha := page.NewGroup(0, 0, 50, 50)
alpha.State().SetColorRgba(parser.RGBA{1, 1, 1, 1}, false)
alpha.State().SetColorRgba(parser.RGBA{R: 1, G: 1, B: 1, A: 1}, false)
alpha.Rectangle(20, 20, 40, 20)
alpha.Rectangle(18, 18, 44, 24)
alpha.Paint(backend.FillEvenOdd)
Expand Down

0 comments on commit a326a51

Please sign in to comment.