Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CoreAlphaLinear ¶
核函数:alpha线性渐变 offset:根据高度向下偏移 step:实际作用高度 maxAlpha:渐变时alpha最大值 return:rgba
func Inscribed ¶ added in v0.10.1
func Inscribed[T constraints.Integer](outW, outH, w, h T) (T, T)
内接
func Position ¶ added in v0.10.1
func Position[T constraints.Integer](outW, outH, w, h, xp, yp T) (T, T)
Types ¶
Click to show internal directories.
Click to hide internal directories.