Documentation
¶
Overview ¶
Package editor implements the minimal Linefire vector editor: an ebiten game with a large drawing canvas on the left and a real-size preview plus a properties panel on the right.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Editor ¶
type Editor struct {
// contains filtered or unexported fields
}
Editor is the ebiten.Game implementation that owns the document and all transient editing state.
func New ¶
New creates an editor for the given asset. savePath is the file used when saving; pass an empty string to use the default file name.
func (*Editor) Draw ¶
Draw renders the whole editor for one frame. The CRT post-process is applied only to the small preview (which represents the in-game look), not the whole editing UI.
func (*Editor) Layout ¶
Layout uses a fixed logical resolution; the window may be resized but the content keeps these dimensions.