package software

import "fyne.io/fyne/v2/internal/painter/software"

Index

Types

type Painter

type Painter struct {
}

Painter is a simple software painter that can paint a canvas in memory.

func NewPainter

func NewPainter() *Painter

NewPainter creates a new Painter.

func (*Painter) Paint

func (*Painter) Paint(c fyne.Canvas) image.Image

Paint is the main entry point for a simple software painter. The canvas to be drawn is passed in as a parameter and the return is an image containing the result of rendering.

Source Files

draw.go painter.go

Version
v2.0.0-rc3
Published
Jan 18, 2021
Platform
js/wasm
Imports
12 packages
Last checked
4 hours ago

Tools for package owners.