Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RenderOption ¶
type RenderOption struct { // Type specifies the render type. See the document of RenderType for more details. Type RenderType // Samples specifies the sample count for anti-aliasing. // It is ignored if the Type is CPURasterizer equivalent to 256xAA. Samples int }
type RenderType ¶
type RenderType int
RenderType is a render type. It affets the speed and quality of rendering. See the documents of RenderType constants for details.
const ( // EvenOddTriangles converts a path into triangles for passing to DrawTriangles with EvenOdd fill rule. // Currently anti-aliasing is not supported with this type. EvenOddTriangles RenderType // CPURasterizer draws with golang.org/x/image/vector.Rasterizer equivalent to 256xAA quality // and relatively expensive. Instead of canvas drawing every frame, // consider drawing only when necessary and storing the result in a temporary *ebiten.Image. CPURasterizer )
type Renderer ¶
type Renderer struct { Dst *ebiten.Image Path RenderOption Text RenderOption }
Renderer is a renderer for canvas. Dst image is required.
func (*Renderer) RenderPath ¶
Click to show internal directories.
Click to hide internal directories.