Documentation ¶
Index ¶
- Constants
- Variables
- func AllDraws(window *glfw.Window)
- func CursorPosCB(window *glfw.Window, xpos, ypos float64)
- func DoesPathExists(p string) bool
- func DrawEndRenderView(window *glfw.Window, currentFrame image.Image)
- func DrawRenderView(window *glfw.Window, currentFrame image.Image)
- func ExternalLaunch(p string)
- func FindIn(container []int, elem int) int
- func GetDefaultFontPath() string
- func GetRootPath() (string, error)
- func MakeLaptopFrames(outName string, totalSeconds int, renderPath string, inputs map[string]string)
- func MakeMobileFrames(outName string, totalSeconds int, renderPath string, inputs map[string]string)
- func MakeVideo(inputs map[string]string, ffmpegCommandPath string) (string, error)
- func ParseLyricsFile(inPath string, totalSeconds int) map[int]string
- func ReadSecondsFromMusicFile(musicPath string) (int, error)
- func RefreshInputsOnWindow(window *glfw.Window, frame image.Image) image.Image
- func TimeFormatToSeconds(s string) int
- func WriteLyricsToImage(inputs map[string]string, text string) image.Image
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 CursorPosCB ¶
func DoesPathExists ¶
func ExternalLaunch ¶
func ExternalLaunch(p string)
func GetDefaultFontPath ¶
func GetDefaultFontPath() string
func GetRootPath ¶
func MakeLaptopFrames ¶
func MakeMobileFrames ¶
func RefreshInputsOnWindow ¶
func TimeFormatToSeconds ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.