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()
🚧 addShader
🚧 getCurrentShader
🚧 getCurrentShaderIndex
🚧 getCurrentShaderName
🚧 getShader
🚧 nextShader
🚧 resetShader
🚧 stamp
🚧 stampToBackground
🚧 stampToForeground
🚧 stampToUI
🚧 switchShader
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
Animation
AnimatedSprite
Looks
addAnimation()
getAnimationFrame()
getAnimationInterval()
isAnimationPlayed()
playAnimation()
resetAnimation()
setAnimationFrame()
setAnimationInterval()
Camera
changeX
changeY
changeZoom
🚧 getPosition
🚧 getX
🚧 getY
🚧 getZoom
🚧 resetZoom
🚧 setPosition
🚧 setX
🚧 setY
🚧 setZoom
🚧 setZoomLimit
🚧 toGlobalPosition
🚧 toGlobalX
🚧 toGlobalY
🚧 toLocalPosition
🚧 toLocalX
🚧 toLocalY
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
Shader
🚧 getName
🚧 set
🚧 setName
Text
addFont()
getCurrentFontIndex()
getCurrentFontName()
nextFont()
setTextSize()
switchFont()
🚧 setBackgroundColor
🚧 setPosition
🚧 setStyle
🚧 setTextColor
🚧 showText
Timer
afterMillis()
everyMillis()
forMillis()
intervalMillis()
reset()
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
Shader
Shakespeare
Smart Rocket
Stress Test
Tiled
Timed Dot
Timer
Tutorials
Getting Started
Powered by
Hyperbook
Scratch for Java
JavaDoc
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()
🚧 addShader
🚧 getCurrentShader
🚧 getCurrentShaderIndex
🚧 getCurrentShaderName
🚧 getShader
🚧 nextShader
🚧 resetShader
🚧 stamp
🚧 stampToBackground
🚧 stampToForeground
🚧 stampToUI
🚧 switchShader
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
Animation
AnimatedSprite
Looks
addAnimation()
getAnimationFrame()
getAnimationInterval()
isAnimationPlayed()
playAnimation()
resetAnimation()
setAnimationFrame()
setAnimationInterval()
Camera
changeX
changeY
changeZoom
🚧 getPosition
🚧 getX
🚧 getY
🚧 getZoom
🚧 resetZoom
🚧 setPosition
🚧 setX
🚧 setY
🚧 setZoom
🚧 setZoomLimit
🚧 toGlobalPosition
🚧 toGlobalX
🚧 toGlobalY
🚧 toLocalPosition
🚧 toLocalX
🚧 toLocalY
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
Shader
🚧 getName
🚧 set
🚧 setName
Text
addFont()
getCurrentFontIndex()
getCurrentFontName()
nextFont()
setTextSize()
switchFont()
🚧 setBackgroundColor
🚧 setPosition
🚧 setStyle
🚧 setTextColor
🚧 showText
Timer
afterMillis()
everyMillis()
forMillis()
intervalMillis()
reset()
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
Shader
Shakespeare
Smart Rocket
Stress Test
Tiled
Timed Dot
Timer
Tutorials
Getting Started
Powered by
Hyperbook
Text
Text
`import org.openpatch.scratch.extensions.text.Text`
Text
🚧 setName
addFont()
✎ GitHub
CC BY-NC-SA
by
OpenPatch