Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SolarLune/masterplan
/ AsImage
Method
AsImage
resources.go:328–331 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
326
}
327
328
func
(resource *Resource) AsImage() Image {
329
resource.Parse()
330
return
resource.Data.(Image)
331
}
332
333
func
(resource *Resource) IsGIF() bool {
334
if
resource.FinishedDownloading() {
Callers
8
Destroy
Method · 0.95
CreateGridTexture
Method · 0.80
DrawGrid
Method · 0.80
NewImageContents
Function · 0.80
Update
Method · 0.80
Draw
Method · 0.80
main
Function · 0.80
ConstructMenus
Function · 0.80
Calls
1
Parse
Method · 0.95
Tested by
no test coverage detected