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
Sprite::getPixels()
Get the pixels of the spripte.
Syntax
Java
.getPixels()
Scratch
Return
int[]
getHeight()
getSize()
✎ GitHub
Licensed under CC BY-NC-SA
by
OpenPatch
.