Documentation ¶
Index ¶
- Constants
- func DrawColourBars(gc *draw2dimg.GraphicContext, bounds Rectangle, cols ...color.Color) (float64, float64)
- func DrawColourBarsVertical(gc *draw2dimg.GraphicContext, bounds Rectangle, cols ...color.Color) (float64, float64)
- func DrawString(gc *draw2dimg.GraphicContext, x, y float64, s string, a ...interface{}) float64
- func FitString(l, t, r, b, sl, st, sr, sb float64) (float64, float64, float64, float64)
- func FloatToA(v float64) string
- func Limit(d, a, b int) int
- func LimitU16(d int) uint16
- func LimitU32(d int) uint32
- func LimitU8(d int) uint8
- func Max(a, b int) int
- func MaxSlice(a []uint32) uint32
- func MaxU32(a, b uint32) uint32
- func MaxU8(a, b uint8) uint8
- func Min(a, b int) int
- func MinMax(a []uint32) (uint32, uint32)
- func MinU32(a, b uint32) uint32
- func MinU8(a, b uint8) uint8
- func Within(frame, start, end int) bool
- type Rectangle
- func (r Rectangle) Add(b Rectangle) Rectangle
- func (r Rectangle) Expand(l, t, right, b float64) Rectangle
- func (r Rectangle) Height() float64
- func (r Rectangle) IsZero() bool
- func (r Rectangle) Reduce(l, t, right, b float64) Rectangle
- func (r Rectangle) String() string
- func (r Rectangle) Width() float64
Constants ¶
View Source
const ( Width4K = 3840 // 4K resolution Height4K = 2160 // 4K resolution ToRad = math.Pi / 180.0 // Degrees to Radians )
View Source
const ( TestCardBasePriority = 1100 // TestCards background TestCardLowerPriority = 1125 // TestCards mid-ground TestCardUpperPriority = 1175 // TestCards mid-ground TestCardTopPriority = 1199 // TestCards foreground DialBackgroundPriority = 2000 // Clock dial background ClockPriority = 2040 // Countdown Clock DialForegroundPriority = 2050 // Clock dial foreground TitlePriority = 2100 // Title BoxPriority = 3000 // Box and derivatives if not implicitly defined )
Renderer priorities
Variables ¶
This section is empty.
Functions ¶
func DrawColourBars ¶
func DrawColourBarsVertical ¶
func DrawString ¶
func DrawString(gc *draw2dimg.GraphicContext, x, y float64, s string, a ...interface{}) float64
func LimitU32 ¶
LimitU32 is identical to LimitU16 but used as image.RGBA uses uint32 with uint16 limits
Types ¶
type Rectangle ¶
type Rectangle struct {
X1, Y1, X2, Y2 float64
}
func GetStringBounds ¶
func GetStringBounds(gc *draw2dimg.GraphicContext, s string) Rectangle
func StringSize ¶
func StringSize(gc *draw2dimg.GraphicContext, s string, a ...interface{}) Rectangle
Directories ¶
Path | Synopsis |
---|---|
goexr
|
|
exr
Package exr contains an implementation of an OpenEXR image decoder.
|
Package exr contains an implementation of an OpenEXR image decoder. |
Package units defines units of length such as inches or pixels.
|
Package units defines units of length such as inches or pixels. |
Click to show internal directories.
Click to hide internal directories.