Documentation
¶
Overview ¶
Package same tells whether the values a frame was drawn from are the same as the last frame's, so that what was worked out from them can be kept.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Effect ¶
Effect reports whether a and b are equal, treating effects that cannot be compared, like an fx.Func, as different.
func Fixed ¶
Fixed reports whether v is comparable and cannot change without changing v itself, so that it can be compared with == or be a map key. A value behind a pointer can change without the pointer changing, including one wrapped by another value, such as an effect wrapped by fx.Delay. The zero Value, of a nil interface, is fixed.
func Style ¶
Style reports whether a and b render the same. Styles cannot be compared with ==, so they are compared deeply, but first by their bytes, which is far cheaper and matches the usual case of styles copied from the same one each frame. A style with a transform function never matches, as the function may give something else each time, and is rendered every time.
Types ¶
This section is empty.