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
Scratch for Java
Contact
📧
Mail
🐦
Twitter
🐘
Mastodon
👨💻
Matrix (Chat)
Translations
🇬🇧
English
🇩🇪
Deutsch
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
Text::setPosition
Text::setPosition
The documentation is under construction.
🚧 setPosition
🚧 setBackgroundColor
🚧 setStyle
✎ GitHub
CC BY-NC-SA
by
OpenPatch