mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 01:27:26 +08:00
1 parent
5e0da3da28
commit
ee6c9f6a16
82 files changed
+4316
-4310
No files matched your search
@@ -16,15 +16,6 @@ package ofdgo
|
||||
|
||||
import "image/color"
|
||||
|
||||
// ColorStop 保存渐变区间位置及预乘RGBA颜色节点
|
||||
type ColorStop struct {
|
||||
Offset float64
|
||||
Color color.RGBA
|
||||
}
|
||||
|
||||
// PaintKind 区分无画刷、纯色、轴向渐变、径向渐变、图案和网格渐变
|
||||
type PaintKind uint8
|
||||
|
||||
const (
|
||||
PaintNone PaintKind = iota
|
||||
PaintSolid
|
||||
@@ -34,6 +25,15 @@ const (
|
||||
PaintMesh
|
||||
)
|
||||
|
||||
// ColorStop 保存渐变区间位置及预乘RGBA颜色节点
|
||||
type ColorStop struct {
|
||||
Offset float64
|
||||
Color color.RGBA
|
||||
}
|
||||
|
||||
// PaintKind 区分无画刷、纯色、轴向渐变、径向渐变、图案和网格渐变
|
||||
type PaintKind uint8
|
||||
|
||||
// Paint 保存后端无关的颜色、渐变和图案,不修改源节点
|
||||
type Paint struct {
|
||||
Kind PaintKind
|
||||
|
||||
Reference in new issue
Block a user