Documentation ¶
Index ¶
- Constants
- Variables
- func AppendRectVerticesIndices(vertices []ebiten.Vertex, indices []uint16, index int, opts *RectOpts) ([]ebiten.Vertex, []uint16)
- func ColorAsFloat32RGB(clr color.Color) float32
- func ItemShader() *ebiten.Shader
- type ColorFilling
- type Content
- type ContentPrimitive
- type ItemPrimitive
- type Pipeline
- type RectOpts
- type Shape
Constants ¶
View Source
const (
AAFactor = 1.5
)
Variables ¶
View Source
var (
BrushImage = ebiten.NewImage(1, 1)
)
View Source
var (
GammaExp = 1. / 2.2
)
Functions ¶
func ColorAsFloat32RGB ¶
func ItemShader ¶
func ItemShader() *ebiten.Shader
Types ¶
type ColorFilling ¶
type ColorFilling byte
const ( ColorFillingVertical ColorFilling = iota ColorFillingDistance ColorFillingNone )
type ItemPrimitive ¶
type ItemPrimitive struct { Z int // First vec4 Shape Shape ColorMin color.Color ColorMax color.Color ColorMinFactor float32 // Second vec4 ColorFilling ColorFilling Rounding float32 BorderColor color.Color BorderWidth float32 // CPU MarginLeft float32 MarginRight float32 MarginTop float32 MarginBottom float32 // Extras ColorAlpha float32 }
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
func NewPipeline ¶
func (*Pipeline) AddContent ¶
func (pp *Pipeline) AddContent(c *ContentPrimitive)
func (*Pipeline) EnsureLayers ¶
Click to show internal directories.
Click to hide internal directories.