类型 RecordOptions

API 文档由 Go 源码生成,内容为英文。

type RecordOptions struct {
	// Duration is how much animation time the recording covers, starting at the
	// current frame. It is the session's virtual clock, the one Wait moves, so
	// the same script records the same frames on every run. Record a little
	// longer than a transition to include its end: a frame is written for each
	// interval it is on screen, not for the instant the window closes.
	Duration time.Duration
	// FPS is how many frames a second the recording samples, at most 120: that
	// is the cadence the driver paints animating frames at, so a faster rate
	// would only repeat them. Zero means 60.
	FPS int
}

RecordOptions configures a recording.