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()
🚧 exit
🚧 getDeltaTime
🚧 setDefaultFont
🚧 whenExits
Stage
âž•
Looks
âž•
add()
addBackdrop()
changeColor()
changeTint()
changeTransparency()
display()
getAll()
getCurrentBackdropIndex()
getCurrentBackdropName()
nextBackdrop()
remove()
removeAll()
removeBackdrop()
setColor()
setCursor()
setTint()
setTransparency()
switchBackdrop()
🚧 eraseAll
🚧 eraseBackground
🚧 eraseForeground
🚧 randomBackdrop
🚧 removeAllPens
🚧 removeAllSprites
🚧 removeAllTexts
🚧 setSorter
Sound
âž•
addSound()
isSoundPlaying()
playSound()
removeSound()
stopAllSounds()
stopSound()
Events
âž•
broadcast(message)
run()
whenBackdropSwitches()
whenIReceive(message)
whenKeyPressed(keyCode)
🚧 whenKeyReleased
🚧 whenMouseClicked
🚧 whenMouseWheelMoved
Sensing
âž•
addTimer()
find()
getCurrentDay()
getCurrentDayOfWeek()
getCurrentHour()
getCurrentMillisecond()
getCurrentMinute()
getCurrentMonth()
getCurrentSecond()
getCurrentYear()
getDaysSince2000()
getMouseX()
getMouseY()
getTimer()
isKeyPressed()
isMouseDown()
removeTimer()
🚧 count
🚧 countPens
🚧 countPensOf
🚧 countSprites
🚧 countSpritesOf
🚧 countTexts
🚧 countTextsOf
🚧 findPensOf
🚧 findSpritesOf
🚧 findTextsOf
🚧 getCamera
🚧 getDeltaTime
🚧 getHeight
🚧 getMouse
🚧 getWidth
Operators
âž•
pickRandom()
Sprite
âž•
Motion
âž•
changeX()
changeY()
getDirection()
getX()
getY()
move()
setDirection()
setOnEdgeBounce()
setPosition()
setRotationStyle()
setX()
setY()
turnLeft()
turnRight()
🚧 goToMousePointer
🚧 goToRandomPosition
🚧 goToSprite
🚧 pointInDirection
🚧 pointTowardsMousePointer
🚧 pointTowardsSprite
Looks
âž•
addCostume()
changeTint()
changeTransparency()
getCurrentCostumeIndex()
getCurrentCostumeName()
getHeight()
getPixels()
getSize()
getWidth()
goLayersBackwards()
goLayersForwards()
goToBackLayer()
goToFrontLayer()
hide()
isUI
isVisible()
nextCostume()
say()
setSize()
setTint()
setTransparency()
show()
switchCostume()
think()
🚧 stamp
🚧 stampToBackground
🚧 stampToForeground
🚧 stampToUI
Sound
âž•
addSound()
isSoundPlaying()
playSound()
removeSound()
stopAllSounds()
stopSound()
Events
âž•
broadcast(message)
run()
whenBackdropSwitches()
whenClicked()
whenIReceive(message)
whenKeyPressed(keyCode)
whenMouseMoved(x, y)
🚧 whenAddedFromStage
🚧 whenKeyReleased
🚧 whenMouseClicked
🚧 whenRemovedFromStage
Sensing
âž•
addTimer()
distanceToMousePointer()
distanceToSprite()
getCurrentDay()
getCurrentDayOfWeek()
getCurrentHour()
getCurrentMillisecond()
getCurrentMinute()
getCurrentMonth()
getCurrentSecond()
getCurrentYear()
getDaysSince2000()
getHitbox()
getMouseX()
getMouseY()
getTimer()
isKeyPressed()
isMouseDown()
isTouchingEdge()
isTouchingMousePointer()
isTouchingSprite()
removeTimer()
setHitbox()
🚧 disableHitbox
🚧 enableHitbox
🚧 getDeltaTime
🚧 getMouse
🚧 getStage
🚧 getTouchingSprite
🚧 getTouchingSprites
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
camera
âž•
🚧 changeX
🚧 changeY
🚧 changeZoom
🚧 getPosition
🚧 getX
🚧 getY
🚧 getZoom
🚧 resetZoom
🚧 setPosition
🚧 setX
🚧 setY
🚧 setZoom
🚧 setZoomLimit
🚧 toGlobalPosition
🚧 toGlobalX
🚧 toGlobalY
🚧 toLocalPosition
🚧 toLocalX
🚧 toLocalY
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
Camera::setZoom
The documentation is under construction.
🚧 setY
🚧 setZoomLimit
✎ GitHub
Licensed under CC BY-NC-SA
by
OpenPatch
.