Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Update readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryBrownEEngr committed Dec 8, 2023
1 parent 2f0a523 commit d935b7b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,15 @@ import (
)

func main() {
frames, _ := easygif.ScreenshotVideo(50, time.Millisecond*100)
_ = easygif.EasyGifWrite(frames, time.Millisecond*100, "./examples/gif/screenshot.gif")
// Collect screenshots of either the entire screen or a trimmed section of it.
//frames, _ := easygif.ScreenshotVideo(50, time.Millisecond*100)
frames, _ := easygif.ScreenshotVideoTrimmed(50, time.Millisecond*100, 200, 10, 50, 400)

frames, _ = easygif.ScreenshotVideoTrimmed(50, time.Millisecond*100, 200, 10, 50, 400)
// Create a GIF using the Plan9 color palette and nearest color approximation.
_ = easygif.EasyGifWrite(frames, time.Millisecond*100, "./examples/gif/screenshotTrimmed.gif")

// Use dithering for better colors
_ = easygif.EasyDitheredGifWrite(frames, time.Millisecond*100, "./examples/gif/screenshotTrimmedDithered.gif")
}

```
Expand Down

0 comments on commit d935b7b

Please sign in to comment.