Scratch for Java
Contact
Translations
Installation
Differences to Scratch
Costumes, Backdrops and Sounds
Changelog
Multiple Approach Design
Documentation
âž–
Window
âž•
getHeight()
getInstance()
getWidth()
isDebug()
setDebug()
setStage()
Stage
âž•
Looks
âž•
add()
addBackdrop()
changeColor()
changeTint()
changeTransparency()
display()
find()
getAll()
getCurrentBackdropIndex()
getCurrentBackdropName()
nextBackdrop()
remove()
removeAll()
removeBackdrop()
setColor()
setTint()
setTransparency()
switchBackdrop()
Sound
âž•
addSound()
isSoundPlaying()
playSound()
removeSound()
stopAllSounds()
stopSound()
Events
âž•
broadcast(message)
run()
whenBackdropSwitches()
whenIReceive(message)
whenKeyPressed(keyCode)
Sensing
âž•
addTimer()
getCurrentDay()
getCurrentDayOfWeek()
getCurrentHour()
getCurrentMillisecond()
getCurrentMinute()
getCurrentMonth()
getCurrentSecond()
getCurrentYear()
getDaysSince2000()
getMouseX()
getMouseY()
getTimer()
isKeyPressed()
isMouseDown()
removeTimer()
Operators
âž•
pickRandom()
Sprite
âž•
Motion
âž•
changeX()
changeY()
getDirection()
getX()
getY()
move()
setDirection()
setOnEdgeBounce()
setPosition()
setRotationStyle()
setX()
setY()
turnLeft()
turnRight()
🚧 pointInDirection
🚧 pointTowardsMousePointer
🚧 pointTowardsSprite
Looks
âž•
addCostume()
changeTint()
changeTransparency()
getCurrentCostumeIndex()
getCurrentCostumeName()
getHeight()
getPixels()
getSize()
getWidth()
goLayersBackwards()
goLayersForwards()
goToBackLayer()
goToFrontLayer()
hide()
isVisible()
nextCostume()
say()
setSize()
setTint()
setTransparency()
show()
switchCostume()
think()
Sound
âž•
addSound()
isSoundPlaying()
playSound()
removeSound()
stopAllSounds()
stopSound()
Events
âž•
broadcast(message)
run()
whenBackdropSwitches()
whenClicked()
whenIReceive(message)
whenKeyPressed(keyCode)
whenMouseMoved(x, y)
Sensing
âž•
addTimer()
distanceToMousePointer()
distanceToSprite()
getCurrentDay()
getCurrentDayOfWeek()
getCurrentHour()
getCurrentMillisecond()
getCurrentMinute()
getCurrentMonth()
getCurrentSecond()
getCurrentYear()
getDaysSince2000()
getHitbox()
getMouseX()
getMouseY()
getTimer()
isKeyPressed()
isMouseDown()
isTouchingEdge()
isTouchingMousePointer()
isTouchingSprite()
removeTimer()
setHitbox()
Operators
âž•
pickRandom()
Pen
âž•
getPen()
Extensions
âž–
Timer
âž•
afterMillis()
everyMillis()
forMillis()
intervalMillis()
reset()
Animation
âž•
AnimatedSprite
âž•
Looks
âž•
addAnimation()
getAnimationFrame()
getAnimationInterval()
isAnimationPlayed()
playAnimation()
resetAnimation()
setAnimationFrame()
setAnimationInterval()
FS
âž•
File
âž•
load()
save()
Math
âž–
Random
âž•
noise()
noiseSeed()
random()
randomInt()
randomSeed()
Vector2
âž–
🚧 add
🚧 angle
🚧 distance
🚧 distanceSq
🚧 dot
🚧 fromPolar
🚧 getX
🚧 getY
🚧 length
🚧 lengthSq
🚧 multiply
🚧 normalVector
🚧 reverse
🚧 rotateBy
🚧 rotateTo
🚧 sub
🚧 unitVector
Pen
âž•
changeColor()
changeSize()
changeTransparency()
down()
eraseAll()
setColor()
setPosition()
setSize()
setTransparency()
up()
Recorder
âž•
FFmpeg
Frame
GIF
Operators
âž•
lerp()
🚧 absOf
🚧 acos
🚧 asin
🚧 atan
🚧 ceilingOf
🚧 constrain
🚧 cosOf
🚧 eToThePowerOf
🚧 floorOf
🚧 lnOf
🚧 logOf
🚧 map
🚧 max
🚧 min
🚧 mod
🚧 sinOf
🚧 sqrtOf
🚧 tanOf
🚧 tenToThePowerOf
Examples
âž•
Cat
Clock
Donut IO
Pipes
Rainbow Vine
Random Dot
Robot
Sensing
Shakespeare
Smart Rocket
Stress Test
Tiled
Timed Dot
Timer
Tutorials
âž•
Getting Started
Powered by
Hyperbook
Vector2::dot
The documentation is under construction.
🚧 distanceSq
🚧 fromPolar
✎ GitHub
Licensed under CC BY-NC-SA
by
OpenPatch
.