MCPcopy Create free account

hub / github.com/blockly-games/blockly-games / functions

Functions453 in github.com/blockly-games/blockly-games

↓ 46 callersFunctiontime
()
appengine/movie/src/main.js:625
↓ 35 callersFunctionline
* Draw a rectangle. * @param {number} x1 Horizontal location of start (0-100). * @param {number} y1 Vertical location of start (0-100). * @param {n
appengine/movie/src/main.js:516
↓ 33 callersFunctionpenColour
* Change the colour of the pen. * @param {string} colour CSS colour string.
appengine/movie/src/main.js:535
↓ 26 callersFunctionmove
* Move the turtle forward or backward. * @param {number} distance Pixels to move. * @param {string=} opt_id ID of block.
appengine/turtle/src/main.js:730
↓ 22 callersFunctioncircle
* Draw a circle. * @param {number} x Horizontal location of centre (0-100). * @param {number} y Vertical location of centre (0-100). * @param {numb
appengine/movie/src/main.js:480
↓ 22 callersFunctionpenDown
* Lift or lower the pen. * @param {boolean} down True if down, false if up. * @param {string=} opt_id ID of block.
appengine/turtle/src/main.js:766
↓ 19 callersFunctionturn
* Turn the turtle left or right. * @param {number} angle Degrees to turn clockwise. * @param {string=} opt_id ID of block.
appengine/turtle/src/main.js:756
↓ 16 callersFunctionp
(a,d)
appengine/common/prettify.js:15
↓ 14 callersFunctiondisplayPegman
* Display Pegman at the specified location, facing the specified direction. * @param {number} x Horizontal grid (or fraction thereof). * @param {num
appengine/maze/src/main.js:1282
↓ 14 callersFunctionpenColour
* Change the colour of the pen. * @param {string} colour CSS colour string. * @param {string=} opt_id ID of block.
appengine/turtle/src/main.js:786
↓ 13 callersFunctionwrap
(name)
appengine/pond/src/battle.js:372
↓ 12 callersFunctioninputFactory
* Create a value input, numeric, right-aligned. * @param {string} name Name of input. * @returns {!Object} JSON structure for value input.
appengine/movie/src/blocks.js:48
↓ 12 callersFunctionv
(a)
appengine/common/prettify.js:9
↓ 12 callersFunctionwrap
(name)
appengine/turtle/src/main.js:643
↓ 10 callersFunctionrect
* Draw a rectangle. * @param {number} x Horizontal location of centre (0-100). * @param {number} y Vertical location of centre (0-100). * @param {n
appengine/movie/src/main.js:497
↓ 9 callersMethodbindEvent_
* Bind an event to a function call. * @param {!Node} node Node upon which to listen. * @param {string} name Event name to listen to (e.g. 'mouse
appengine/movie/src/scrubber.js:373
↓ 9 callersMethodreset
* Reset this avatar to a starting state.
appengine/pond/src/avatar.js:102
↓ 9 callersFunctionwrap
(name)
appengine/maze/src/main.js:982
↓ 8 callersFunctionanimate
* Highlight a block and pause. * @param {string|undefined} id ID of block.
appengine/turtle/src/main.js:713
↓ 8 callersMethodbindEvent_
* Bind an event to a function call. * @param {!Node} node Node upon which to listen. * @param {string} name Event name to listen to (e.g. 'mouse
appengine/src/slider.js:254
↓ 7 callersFunctionconstrainDirection16
* Keep the direction within 0-15, wrapping at both ends. * @param {number} d Potentially out-of-bounds direction value. * @returns {number} Legal di
appengine/maze/src/main.js:1370
↓ 7 callersFunctiondrawStar
(length)
appengine/turtle/src/main.js:886
↓ 7 callersFunctionschedule
* Schedule the animations for a move or turn. * @param {!Array<number>} startPos X, Y and direction starting points. * @param {!Array<number>} endPo
appengine/maze/src/main.js:1157
↓ 7 callersMethodsetCode
* Sets the code for this avatar. * @param {string|undefined} blockly Blockly XML, or undefined if no Blockly. * @param {string|undefined} js Jav
appengine/pond/src/avatar.js:93
↓ 6 callersFunctiondisplayBird
* Display bird at the current location, facing the current angle. * @param {!Pose} pose Set new pose.
appengine/bird/src/main.js:771
↓ 6 callersMethoddistance
* Compute the distance between this line segment and the given coordinate. * @param {!Blockly.utils.Coordinate} xy Point to measure from. * @ret
appengine/bird/src/main.js:102
↓ 6 callersFunctiong
(e)
appengine/common/prettify.js:2
↓ 6 callersMethodgetValue
* Returns the slider's value (0.0 - 1.0). * @returns {number} Current value.
appengine/movie/src/scrubber.js:296
↓ 6 callersFunctionrestFactory
* Create a dropdown option for a rest. * @param {number} denominator Inverse duration of rest. * @returns {!Object} Dropdown option.
appengine/music/src/blocks.js:69
↓ 6 callersFunctionwrapMath
(name)
appengine/pond/src/battle.js:409
↓ 5 callersFunctionC
(a,d)
appengine/common/prettify.js:7
↓ 5 callersFunctionconstrainDirection4
* Keep the direction within 0-3, wrapping at both ends. * @param {number} d Potentially out-of-bounds direction value. * @returns {number} Legal dir
appengine/maze/src/main.js:1357
↓ 5 callersFunctionisPath
* Is there a path next to pegman? * @param {number} direction Direction to look * (0 = forward, 1 = right, 2 = backward, 3 = left). * @param {?
appengine/maze/src/main.js:1442
↓ 5 callersFunctionnormalize
(x, y)
appengine/maze/src/main.js:327
↓ 5 callersFunctiononresize
(_e)
appengine/pond/duck/src/main.js:100
↓ 5 callersMethodsetValue
* Sets the slider's value (0.0 - 1.0). * @param {number} value New value.
appengine/movie/src/scrubber.js:329
↓ 5 callersFunctionwrap
(name)
appengine/movie/src/main.js:463
↓ 4 callersMethodGetPath
Returns the path.
third-party/closurebuilder/closurebuilder.py:156
↓ 4 callersMethod__init__
Initializes the tree with a set of sources. Args: sources: A set of JavaScript sources. Raises: MultipleProvideError: A namespac
third-party/closurebuilder/depstree.py:28
↓ 4 callersMethodaddDamage
* Damage the avatar. * @param {number} add Amount of damage to add.
appengine/pond/src/avatar.js:129
↓ 4 callersFunctiondoubleReplica
(a)
appengine/music/src/main.js:898
↓ 4 callersFunctionlevelHelp
* When the workspace changes, update the help as needed. * @param {Blockly.Events.Abstract=} opt_event Custom data for event.
appengine/maze/src/main.js:564
↓ 4 callersFunctionreset
* Reset the turtle to the start position, clear the display, and kill any * pending tasks.
appengine/turtle/src/main.js:448
↓ 4 callersFunctionreset
* Reset the maze to the start position and kill any pending animation tasks. * @param {boolean} first True if an opening animation is to be played.
appengine/maze/src/main.js:805
↓ 4 callersFunctionreset
* Reset the bird to the start position and kill any pending animation tasks. * @param {boolean} first True if an opening animation is to be played.
appengine/bird/src/main.js:550
↓ 4 callersFunctionscheduleLook
* Display the look icon at Pegman's current location, * in the specified direction. * @param {!DirectionType} d Direction (0 - 3).
appengine/maze/src/main.js:1304
↓ 4 callersFunctionsetBlocksDisabled
* Enable or disable the ability to use Blockly. * @param {boolean} disabled True if Blockly is disabled and JS is to be used.
appengine/pond/duck/src/main.js:278
↓ 4 callersMethodsetValue
* Sets the slider's value (0.0 - 1.0). * @param {number} value New value.
appengine/src/slider.js:222
↓ 4 callersFunctionshuffle
* Shuffles the values in the specified array using the Fisher-Yates in-place * shuffle (also known as the Knuth Shuffle). * Runtime: O(n) * Based o
appengine/puzzle/src/main.js:162
↓ 4 callersMethodstop
* Commands the avatar to stop.
appengine/pond/src/avatar.js:248
↓ 4 callersFunctionwrap
(name)
appengine/bird/src/main.js:666
↓ 3 callersFunctionH
(a,d,g,b)
appengine/common/prettify.js:7
↓ 3 callersFunctionb
(e)
appengine/common/prettify.js:2
↓ 3 callersFunctionchangeTab
* Called by the tab bar when a tab is selected. * @param {number} index Which tab is now active (0-1).
appengine/pond/duck/src/main.js:210
↓ 3 callersMethoddie
* Kill this avatar.
appengine/pond/src/avatar.js:139
↓ 3 callersFunctiondrawNote
* Draw and position the specified note or rest. * @param {number} i Which stave bar to draw on (base 1). * @param {number} time Distance down the st
appengine/music/src/main.js:294
↓ 3 callersMethodgetValue
* Returns the slider's value (0.0 - 1.0). * @returns {number} Current value.
appengine/src/slider.js:190
↓ 3 callersMethodmouseToSvg_
* Convert the mouse coordinates into SVG coordinates. * @param {!Object} e Object with x and y mouse coordinates. * @returns {!Object} Object wi
appengine/src/slider.js:238
↓ 3 callersMethodmouseToSvg_
* Convert the mouse coordinates into SVG coordinates. * @param {!Object} e Object with x and y mouse coordinates. * @returns {!Object} Object wi
appengine/movie/src/scrubber.js:357
↓ 3 callersMethodplayPause_
* Play/Pause button was clicked. * @param {!Event=} opt_e Mouse or touch event. * @private
appengine/movie/src/scrubber.js:251
↓ 3 callersFunctionreset
* Reset the music to the start position, clear the display, and kill any * pending tasks.
appengine/music/src/main.js:510
↓ 3 callersFunctions
(e)
appengine/common/prettify.js:4
↓ 3 callersFunctionstaveTop_
* Return the height of a stave bar. * @param {number} i Which stave bar to compute (base 1). * @param {number} n Number of stave bars. * @returns {
appengine/music/src/main.js:277
↓ 3 callersFunctionstopSound
* Stop the specified thread from playing the current sound. * @param {!Thread} thread Thread object.
appengine/music/src/main.js:712
↓ 3 callersMethodtouchToMouse_
* Map the touch event's properties to be compatible with a mouse event. * @param {TouchEvent} e Event to modify. * @private
appengine/src/slider.js:266
↓ 3 callersMethodtouchToMouse_
* Map the touch event's properties to be compatible with a mouse event. * @param {TouchEvent} e Event to modify. * @private
appengine/movie/src/scrubber.js:385
↓ 3 callersMethodvalueToNote
* Convert the machine-readable value (0-12) to human-readable text (C3-A4). * @param {number|string} value The provided value. * @returns {strin
appengine/music/src/field_pitch.js:151
↓ 3 callersFunctionwrap
(name)
appengine/music/src/main.js:585
↓ 2 callersMethodGetSource
Get the source as a string.
third-party/closurebuilder/source.py:64
↓ 2 callersFunctionI
(a,d)
appengine/common/prettify.js:15
↓ 2 callersFunctionJ
(a,d,g)
appengine/common/prettify.js:13
↓ 2 callersFunctionK
(a)
appengine/common/prettify.js:15
↓ 2 callersFunctionangleDx
* For a given angle and radius, finds the X portion of the offset. * Copied from Closure's goog.math.angleDx. * @param {number} degrees Angle in deg
appengine/puzzle/src/main.js:321
↓ 2 callersFunctionangleDy
* For a given angle and radius, finds the Y portion of the offset. * Copied from Closure's goog.math.angleDy. * @param {number} degrees Angle in deg
appengine/puzzle/src/main.js:332
↓ 2 callersFunctionanimate
* Highlight a block and pause. * @param {?string} id ID of block.
appengine/music/src/main.js:764
↓ 2 callersFunctionautoScroll
* Scroll the music display horizontally to the current time.
appengine/music/src/main.js:725
↓ 2 callersFunctiond
(e)
appengine/common/prettify.js:2
↓ 2 callersFunctiondisplay
* Copy the scratch canvas to the display canvas. Add a turtle marker.
appengine/turtle/src/main.js:474
↓ 2 callersFunctiondisplay
* Copy the scratch canvas to the display canvas. * @param {number=} opt_frameNumber Which frame to draw (0-100). * If not defined, draws the cur
appengine/movie/src/main.js:377
↓ 2 callersFunctiondrawFrame_
* Draw one frame of the movie. * @param {!Interpreter} interpreter A JS-Interpreter loaded with user code. * @private
appengine/movie/src/main.js:327
↓ 2 callersFunctiondrawStave
* Draw and position the specified number of stave bars. * @param {number} n Number of stave bars.
appengine/music/src/main.js:256
↓ 2 callersFunctionendResult
()
appengine/src/lib-dialogs.js:119
↓ 2 callersFunctiongaObject
(var_args)
appengine/src/lib-games.js:430
↓ 2 callersFunctiongotoPoint
* Move the bird to the given point. * @param {!Blockly.utils.Coordinate} p Coordinate of point.
appengine/bird/src/main.js:856
↓ 2 callersFunctionisVisible
* Make the turtle visible or invisible. * @param {boolean} visible True if visible, false if invisible. * @param {string=} opt_id ID of block.
appengine/turtle/src/main.js:797
↓ 2 callersFunctionloadMore
* Load more entries.
appengine/gallery/src/main.js:77
↓ 2 callersFunctionmove
* Attempt to move pegman forward or backward. * @param {number} direction Direction to move (0 = forward, 2 = backward). * @param {string} id ID of
appengine/maze/src/main.js:1387
↓ 2 callersFunctionnotDone
* Is the player at the finish marker? * @returns {boolean} True if not done, false if done.
appengine/maze/src/main.js:1473
↓ 2 callersFunctiononresize
(_e)
appengine/turtle/src/main.js:97
↓ 2 callersFunctiononresize
(_e)
appengine/music/src/main.js:118
↓ 2 callersFunctiononresize
(_e)
appengine/movie/src/main.js:83
↓ 2 callersFunctiononresize
(_e)
appengine/maze/src/main.js:461
↓ 2 callersFunctiononresize
(_e)
appengine/bird/src/main.js:379
↓ 2 callersFunctionrenderAnswer_
* On startup draw the expected answers and save it to answer canvases. * @param {number} f Frame number (0-100). * @private
appengine/movie/src/main.js:251
↓ 2 callersFunctionresetButtonClick
* Click the reset button. Reset the Music. * @param {!Event=} opt_e Mouse or touch event.
appengine/music/src/main.js:549
↓ 2 callersFunctionrest
* Wait one rest. * @param {number} duration Fraction of a whole note length to rest. * @param {?string} id ID of block.
appengine/music/src/main.js:831
↓ 2 callersFunctionscheduleFail
* Schedule the animations and sounds for a failed move. * @param {boolean} forward True if forward, false if backward.
appengine/maze/src/main.js:1184
↓ 2 callersFunctionscheduleFinish
* Schedule the animations and sound for a victory dance. * @param {boolean} sound Play the victory sound.
appengine/maze/src/main.js:1257
↓ 2 callersFunctionshowHelp
* Show the help pop-up. * @param {boolean} animate Animate the pop-up opening.
appengine/puzzle/src/main.js:357
↓ 2 callersFunctiontoRadians
* Converts degrees to radians. * Copied from Closure's goog.math.toRadians. * @param {number} angleDegrees Angle in degrees. * @return {number} Ang
appengine/index/src/main.js:113
next →1–100 of 453, ranked by callers