Documentation
¶
Index ¶
- Variables
- func BesierCubic(c *cairo.Canvas, p0, p1, p2, p3 geom.Point2f)
- func BesierQuad(c *cairo.Canvas, p0, p1, p2 geom.Point2f)
- func HeartCurve(t float64) geom.Point2f
- type AspectRatio
- type Aspector
- type Caret
- type Circle
- type CurlyBrackets
- type DigitV1
- type DigitV2
- type DigitV3
- type DigitV4
- type Greed
- type HBox
- type Heart
- type HexagoneOrientation
- type ICanvas
- type Infinity
- type Invert
- type Object
- type Rectangle
- type RegularPolygon
- type Rhombus
- type RoundRect
- type Tilde
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Black = color.Black White = color.White Red = colorf.MustParseColor("#f00") Green = colorf.MustParseColor("#070") Blue = colorf.MustParseColor("#00f") // Tp - transparent RedTp50 = colorf.MakeColorf(1, 0, 0, 0.5) )
View Source
var DrawLevelArea = false
Functions ¶
func HeartCurve ¶
Heart Curve https://mathworld.wolfram.com/HeartCurve.html
Types ¶
type AspectRatio ¶
func MakeAspectRatio ¶
func MakeAspectRatio(x, y int) AspectRatio
func MustParseAspectRatio ¶
func MustParseAspectRatio(s string) AspectRatio
func ParseAspectRatio ¶
func ParseAspectRatio(s string) (AspectRatio, error)
func (AspectRatio) Normalize ¶
func (a AspectRatio) Normalize() AspectRatio
func (AspectRatio) String ¶
func (a AspectRatio) String() string
type Aspector ¶
------------------------------------------------------------------------------ Factorer
type CurlyBrackets ¶
type CurlyBrackets struct {
Content Object
}
Curly brackets or braces
func (CurlyBrackets) Draw ¶
func (v CurlyBrackets) Draw(c *cairo.Canvas, r geom.Rectangle2f, level int)
func (CurlyBrackets) IsObject ¶
func (CurlyBrackets) IsObject()
type HexagoneOrientation ¶
type HexagoneOrientation int
const ( Angled HexagoneOrientation = iota Flat )
type ICanvas ¶
type ICanvas struct {
// contains filtered or unexported fields
}
func NewICanvas ¶
func (*ICanvas) BesierCubic ¶
func (*ICanvas) BesierQuad ¶
type Object ¶
type Object interface { IsObject() Draw(c *cairo.Canvas, r geom.Rectangle2f, level int) }
func ISO216 ¶
------------------------------------------------------------------------------ Standard ISO216 (A0, A1, ... A4, ... A7)
func SquareAspector ¶
------------------------------------------------------------------------------
type RegularPolygon ¶
func (RegularPolygon) Draw ¶
func (v RegularPolygon) Draw(c *cairo.Canvas, r geom.Rectangle2f, level int)
func (RegularPolygon) IsObject ¶
func (RegularPolygon) IsObject()
Source Files
¶
- aspect.go
- besier.go
- boxes.go
- brackets.go
- cairo.go
- canvas.go
- caret.go
- circle.go
- digit1.go
- digit2.go
- digit3.go
- digit4.go
- greed.go
- heart.go
- hexagone.go
- infinity.go
- invert.go
- lemniscates.go
- object.go
- palettes.go
- params.go
- rectangle.go
- regular_polygon.go
- rhombus.go
- round_rect.go
- tilde.go
- triangle.go
- utils.go
Click to show internal directories.
Click to hide internal directories.