MCPcopy Index your code
hub / github.com/phaserjs/phaser / makeRealFrame

Function makeRealFrame

tests/gameobjects/components/Texture.test.js:58–64  ·  view source on GitHub ↗
(cutWidth, cutHeight)

Source from the content-addressed store, hash-verified

56}
57
58function makeRealFrame (cutWidth, cutHeight)
59{
60 var mockSource = { width: 256, height: 256 };
61 var mockTexture = { key: 'mock-texture', source: [ mockSource ] };
62 var frame = new Frame(mockTexture, 'frame0', 0, 0, 0, cutWidth || 64, cutHeight || 64);
63 return frame;
64}
65
66describe('Texture', function ()
67{

Callers 1

Texture.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…