mirror of
https://github.com/nxshock/colorcrop.git
synced 2025-07-01 00:13:44 +05:00
Go fmt
This commit is contained in:
parent
bfd43a5531
commit
e3053bd087
1 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ func ExampleCrop() {
|
|||
croppedImage := colorcrop.Crop(
|
||||
sourceImage, // for source image
|
||||
color.RGBA{255, 255, 255, 255}, // crop white border
|
||||
0.5) // with 50% thresold
|
||||
0.5) // with 50% thresold
|
||||
|
||||
// Save cropped image
|
||||
croppedFile, _ := os.Create("cropped.png")
|
||||
|
@ -41,8 +41,8 @@ func ExampleCropWithComparator() {
|
|||
croppedImage := colorcrop.CropWithComparator(
|
||||
sourceImage, // for source image
|
||||
color.RGBA{255, 255, 255, 255}, // crop white border
|
||||
0.5, // with 50% thresold
|
||||
colorcrop.CmpCIE76) // using CIE76 standart for defining color difference
|
||||
0.5, // with 50% thresold
|
||||
colorcrop.CmpCIE76) // using CIE76 standart for defining color difference
|
||||
|
||||
// Save cropped image
|
||||
croppedFile, _ := os.Create("cropped.png")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue