internal

package
v0.0.0-...-e0efa93 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FPS             = 24
	FontSize        = 20
	OpenWDBtn       = 101
	ViewLyricsBtn   = 102
	SelectLyricsBtn = 103
	FontFileBtn     = 104
	BgFileBtn       = 105
	MusicFileBtn    = 106
	LyricsColorBtn  = 107
	RenderBtn       = 109
	RenderL8fBtn    = 110
	OurSite         = 111
)
View Source
const (
	LAPTOP_WIDTH  = 1366
	LAPTOP_HEIGHT = 768
)
View Source
const (
	DPI     = 72.0
	SIZE    = 80.0
	MSIZE   = 80.0
	SPACING = 1.1
)
View Source
const (
	MOBILE_WIDTH  = 800
	MOBILE_HEIGHT = 1000
)
View Source
const VersionFormat = "20060102T150405MST"

Variables

View Source
var ClearAfterRender bool
View Source
var CursorEventsCount = 0
View Source
var DefaultFont []byte
View Source
var EmptyFrameNoInputs image.Image
View Source
var InChannel chan bool
View Source
var InputsStore map[string]string
View Source
var ObjCoords map[int]g143.Rect
View Source
var SampleLyricsFile []byte

Functions

func AllDraws

func AllDraws(window *glfw.Window)

func CursorPosCB

func CursorPosCB(window *glfw.Window, xpos, ypos float64)

func DoesPathExists

func DoesPathExists(p string) bool

func DrawEndRenderView

func DrawEndRenderView(window *glfw.Window, currentFrame image.Image)

func DrawRenderView

func DrawRenderView(window *glfw.Window, currentFrame image.Image)

func ExternalLaunch

func ExternalLaunch(p string)

func FindIn

func FindIn(container []int, elem int) int

func GetDefaultFontPath

func GetDefaultFontPath() string

func GetRootPath

func GetRootPath() (string, error)

func MakeLaptopFrames

func MakeLaptopFrames(outName string, totalSeconds int, renderPath string, inputs map[string]string)

func MakeMobileFrames

func MakeMobileFrames(outName string, totalSeconds int, renderPath string, inputs map[string]string)

func MakeVideo

func MakeVideo(inputs map[string]string, ffmpegCommandPath string) (string, error)

func ParseLyricsFile

func ParseLyricsFile(inPath string, totalSeconds int) map[int]string

func ReadSecondsFromMusicFile

func ReadSecondsFromMusicFile(musicPath string) (int, error)

func RefreshInputsOnWindow

func RefreshInputsOnWindow(window *glfw.Window, frame image.Image) image.Image

func TimeFormatToSeconds

func TimeFormatToSeconds(s string) int

func WriteLyricsToImage

func WriteLyricsToImage(inputs map[string]string, text string) image.Image

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL