MCPcopy
hub / github.com/KilledByAPixel/LittleJS / update

Method update

plugins/uiSystem.js:1515–1521  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1513 { this.video.currentTime = clamp(time, 0, this.getDuration()); }
1514
1515 update()
1516 {
1517 super.update();
1518
1519 // update volume based on global sound volume
1520 this.video.volume = clamp(this.volume * soundVolume);
1521 }
1522
1523 /** Render video to UI canvas */
1524 render()

Callers 6

smoke.test.mjsFile · 0.45
updateObjectMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45
KFunction · 0.45
aFunction · 0.45

Calls 1

clampFunction · 0.85

Tested by

no test coverage detected