Index

A B C D E F G H I K L M N O P R S T U V W X Y 
All Classes and Interfaces|All Packages|Constant Field Values

A

absOf(double) - Static method in class org.openpatch.scratch.Operators
"abs" is an abbreviation for "absolute value." The absolute value of a number is its distance from 0.
absOf(int) - Static method in class org.openpatch.scratch.Operators
"abs" is an abbreviation for "absolute value." The absolute value of a number is its distance from 0.
acosOf(double) - Static method in class org.openpatch.scratch.Operators
"acos" is the abbreviation for "arccosine" and is also sometimes written as cos−1.
add(Vector2) - Method in class org.openpatch.scratch.extensions.math.Vector2
Adds another vector and returns the result
add(Pen) - Method in class org.openpatch.scratch.Stage
Adds a Pen object to the stage.
add(Text) - Method in class org.openpatch.scratch.Stage
Add a text object to the stage
add(Sprite) - Method in class org.openpatch.scratch.Stage
Add a sprite object to the stage
addAnimation(String, String, int) - Method in class org.openpatch.scratch.extensions.animation.AnimatedSprite
Adds an animation to the sprite.
addAnimation(String, String, int, int, int) - Method in class org.openpatch.scratch.extensions.animation.AnimatedSprite
Adds an animation to the sprite.
addAnimation(String, String, int, int, int, int) - Method in class org.openpatch.scratch.extensions.animation.AnimatedSprite
Adds an animation to the sprite.
addAnimation(String, String, int, int, int, int, boolean) - Method in class org.openpatch.scratch.extensions.animation.AnimatedSprite
Adds an animation to the sprite.
addBackdrop(String, String) - Method in class org.openpatch.scratch.Stage
Add a backdrop to the stage.
addBackdrop(String, String, boolean) - Method in class org.openpatch.scratch.Stage
Add a backdrop to the stage.
addCostume(String, String) - Method in class org.openpatch.scratch.Sprite
Add a costume to the sprite.
addCostume(String, String, int, int, int, int) - Method in class org.openpatch.scratch.Sprite
Adds a new costume to the sprite if a costume with the same name does not already exist.
addCostumes(String, String, int, int) - Method in class org.openpatch.scratch.Sprite
Adds all tiles from a spritesheet as costumes.
addedToStage(Stage) - Method in class org.openpatch.scratch.extensions.pen.Pen
This method is called when the pen is added to the stage.
addedToStage(Stage) - Method in class org.openpatch.scratch.extensions.text.Text
 
addFont(String, String) - Method in class org.openpatch.scratch.extensions.text.Text
Adds a new font to the list of fonts if it does not already exist.
addFrame(int[], int, int) - Method in class org.openpatch.scratch.internal.AnimatedGifEncoder
 
addFrame(BufferedImage) - Method in class org.openpatch.scratch.internal.AnimatedGifEncoder
Adds next GIF frame.
addShader(String, String) - Method in class org.openpatch.scratch.Sprite
Adds a new shader to the sprite.
addShader(String, String) - Method in class org.openpatch.scratch.Stage
Adds a new shader to the sprite.
addSound(String, String) - Method in class org.openpatch.scratch.Sprite
Add a sound to the sprite.
addSound(String, String) - Method in class org.openpatch.scratch.Stage
Add a sound to the stage.
addStage(String, Stage) - Method in class org.openpatch.scratch.internal.Applet
Deprecated.
since 4.0.0. Use setStage instead.
addStage(String, Stage) - Method in class org.openpatch.scratch.Window
Deprecated.
since 4.0.0. Use setStage instead.
addTimer(String) - Method in class org.openpatch.scratch.Sprite
Add a new timer by name.
addTimer(String) - Method in class org.openpatch.scratch.Stage
Add a new timer by name.
afterMillis(int) - Method in class org.openpatch.scratch.extensions.timer.Timer
Checks if the specified number of milliseconds has passed since the method was first called.
ALICE_BLUE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
ALL_AROUND - Enum constant in enum class org.openpatch.scratch.RotationStyle
Sprite can rotate in all 360 degrees
angle() - Method in class org.openpatch.scratch.extensions.math.Vector2
Returns the angle of the vector.
AnimatedGifEncoder - Class in org.openpatch.scratch.internal
Class AnimatedGifEncoder - Encodes a GIF file consisting of one or more frames.
AnimatedGifEncoder() - Constructor for class org.openpatch.scratch.internal.AnimatedGifEncoder
 
AnimatedSprite - Class in org.openpatch.scratch.extensions.animation
The AnimatedSprite class represents a sprite that can play animations.
AnimatedSprite() - Constructor for class org.openpatch.scratch.extensions.animation.AnimatedSprite
 
ANTIQUE_WHITE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
Applet - Class in org.openpatch.scratch.internal
The Applet class represents the main application window.
Applet(int, int, boolean, String) - Constructor for class org.openpatch.scratch.internal.Applet
Constructs an Applet with the specified width, height, fullscreen mode, and assets path.
AQUA - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
AQUAMARINE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
asinOf(double) - Static method in class org.openpatch.scratch.Operators
"asin" is the abbreviation for "arcsine" and is also sometimes written as sin−1.
atanOf(double) - Static method in class org.openpatch.scratch.Operators
"atan" is the abbreviation for "arctangent" and is also sometimes written as tan−1.
AZURE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 

B

backgroundStamps - Variable in class org.openpatch.scratch.Stage
 
BEIGE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
BISQUE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
BLACK - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
BLANCHED_ALMOND - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
BLUE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
BLUE_VIOLET - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
BOX - Enum constant in enum class org.openpatch.scratch.extensions.text.TextStyle
 
broadcast(Object) - Method in class org.openpatch.scratch.Sprite
Broadcasts a message to all sprites in the stage except the current sprite, and also to the stage itself.
broadcast(Object) - Method in class org.openpatch.scratch.Stage
Broadcasts a message to all sprites in the stage.
broadcast(String) - Method in class org.openpatch.scratch.Sprite
Broadcasts a message to all sprites in the stage except the current sprite.
broadcast(String) - Method in class org.openpatch.scratch.Stage
Broadcasts a message to all sprites in the stage.
BROWN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
BURLYWOOD - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 

C

CADET_BLUE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
Camera - Class in org.openpatch.scratch.extensions.camera
The Camera class represents a camera that can be used to view a scene.
Camera() - Constructor for class org.openpatch.scratch.extensions.camera.Camera
Constructs a new Camera with default values.
ceilingOf(double) - Static method in class org.openpatch.scratch.Operators
This always rounds the number up to the least whole number greater than or equal to the number.
CENTER - Enum constant in enum class org.openpatch.scratch.MouseCode
Represents the center (or middle) mouse button.
CENTER - Static variable in class org.openpatch.scratch.extensions.text.TextAlign
 
changeColor(double) - Method in class org.openpatch.scratch.extensions.color.Color
Changes the color accordining to a hue value, which is added to the current hue value.
changeColor(double) - Method in class org.openpatch.scratch.extensions.pen.Pen
Change color via a hue value, which is added to the current hue value
changeColor(double) - Method in class org.openpatch.scratch.Stage
Changes the background color by adding a step to the hue value.
changeSize(double) - Method in class org.openpatch.scratch.extensions.pen.Pen
Change the size of the pen
changeSize(double) - Method in class org.openpatch.scratch.Sprite
Changes the size of the sprite by a given percentage.
changeTint(double) - Method in class org.openpatch.scratch.internal.Image
Changes the tint by adding a hue value to the current hue value.
changeTint(double) - Method in class org.openpatch.scratch.Sprite
Changes the tint for the sprite by a step.
changeTint(double) - Method in class org.openpatch.scratch.Stage
Changes the tint for the current backdrop
changeTransparency(double) - Method in class org.openpatch.scratch.extensions.pen.Pen
Change the transparency by a step
changeTransparency(double) - Method in class org.openpatch.scratch.internal.Image
Changes the transparency by adding a step value to the current transparency.
changeTransparency(double) - Method in class org.openpatch.scratch.Sprite
Changes the transparency for the sprite.
changeTransparency(double) - Method in class org.openpatch.scratch.Stage
Changes the transparency for the current costume.
changeVolume(double) - Method in class org.openpatch.scratch.internal.Sound
Changes the volume by a step
changeX(double) - Method in class org.openpatch.scratch.extensions.camera.Camera
Changes x by a certain amount
changeX(double) - Method in class org.openpatch.scratch.Sprite
Changes x by a certain amount
changeY(double) - Method in class org.openpatch.scratch.extensions.camera.Camera
Changes y by a certain amount
changeY(double) - Method in class org.openpatch.scratch.Sprite
Changes y by a certain amount
changeZoom(double) - Method in class org.openpatch.scratch.extensions.camera.Camera
Changes the zoom level by a certain amount
CHARTREUSE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
CHOCOLATE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
clone() - Method in class org.openpatch.scratch.extensions.math.Vector2
Creates a clone of the vector
Color - Class in org.openpatch.scratch.extensions.color
The Color class represents a color in the Scratch environment.
Color() - Constructor for class org.openpatch.scratch.extensions.color.Color
Constructs a new Color object with default values.
Color(double) - Constructor for class org.openpatch.scratch.extensions.color.Color
Constructs a new Color object with the specified hue value.
Color(double, double, double) - Constructor for class org.openpatch.scratch.extensions.color.Color
Constructs a new Color object with the specified rgb values.
Color(String) - Constructor for class org.openpatch.scratch.extensions.color.Color
 
Color(Color) - Constructor for class org.openpatch.scratch.extensions.color.Color
Copies the received ScratchColor object.
constrain(double, double, double) - Static method in class org.openpatch.scratch.Operators
Constrains a value to not exceed a maximum and minimum value.
constrain(int, int, int) - Static method in class org.openpatch.scratch.Operators
Constrains a value to not exceed a maximum and minimum value.
contains(double, double) - Method in class org.openpatch.scratch.extensions.hitbox.Hitbox
Checks if the hitbox contains a point.
CORAL - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
CORNFLOWER_BLUE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
CORNSILK - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
cosOf(double) - Static method in class org.openpatch.scratch.Operators
"cos" is the abbreviation for "cosine." The cosine of an angle is the ratio between the length of the side adjacent (next to) it on the triangle and the length of the hypotenuse.
count(Class<T>) - Method in class org.openpatch.scratch.Stage
Returns the number of sprites of the specified class.
countPens() - Method in class org.openpatch.scratch.Stage
Returns the number of pens
countPensOf(Class<T>) - Method in class org.openpatch.scratch.Stage
Returns the number of pens of the specified class.
countSprites() - Method in class org.openpatch.scratch.Stage
Returns the number of sprites in the stage.
countSpritesOf(Class<T>) - Method in class org.openpatch.scratch.Stage
Returns the number of sprites of the specified class.
countTexts() - Method in class org.openpatch.scratch.Stage
Returns the number of texts in the stage.
countTextsOf(Class<T>) - Method in class org.openpatch.scratch.Stage
Returns the number of texts of the specified class.
CRIMSON - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
CYAN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 

D

DARK_BLUE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
DARK_CYAN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
DARK_GOLDENROD - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
DARK_GRAY - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
DARK_GREEN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
DARK_KHAKI - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
DARK_MAGENTA - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
DARK_OLIVE_GREEN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
DARK_ORANGE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
DARK_ORCHID - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
DARK_RED - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
DARK_SALMON - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
DARK_SEA_GREEN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
DARK_SLATE_BLUE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
DARK_SLATE_GRAY - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
DARK_TURQUOISE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
DARK_VIOLET - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
DEBUG_COLOR - Static variable in class org.openpatch.scratch.Window
 
DEEP_PINK - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
DEEP_SKY_BLUE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
DEFAULT - Static variable in class org.openpatch.scratch.extensions.text.TextAlign
 
defaultFont - Static variable in class org.openpatch.scratch.internal.Font
The default font.
defaultFontName - Static variable in class org.openpatch.scratch.internal.Font
The default font name.
defaultFontPath - Static variable in class org.openpatch.scratch.internal.Font
The default font path.
degreesToRadians(double) - Static method in class org.openpatch.scratch.extensions.math.Utils
Converts an angle measured in degrees to an approximately equivalent angle measured in radians.
DIM_GRAY - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
disableHitbox() - Method in class org.openpatch.scratch.Sprite
Disables the hitbox for the sprite.
display(String) - Method in class org.openpatch.scratch.Stage
Displays the given text on the stage.
display(String, int) - Method in class org.openpatch.scratch.Stage
Displays the given text on the screen for a specified duration.
distance(Vector2) - Method in class org.openpatch.scratch.extensions.math.Vector2
Calculates the distance to another vector.
distanceSq(Vector2) - Method in class org.openpatch.scratch.extensions.math.Vector2
Calculates the squared distance to another vector.
distanceToMousePointer() - Method in class org.openpatch.scratch.Sprite
Calculates the distance from the current sprite to the mouse pointer.
distanceToSprite(Sprite) - Method in class org.openpatch.scratch.Sprite
Calculates the Euclidean distance between this sprite and another sprite.
DODGER_BLUE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
DONT - Enum constant in enum class org.openpatch.scratch.RotationStyle
Sprite does not rotate at all
dot(Vector2) - Method in class org.openpatch.scratch.extensions.math.Vector2
Calculates the dot product.
down() - Method in class org.openpatch.scratch.extensions.pen.Pen
Set the pen down.
draw() - Method in class org.openpatch.scratch.extensions.pen.Pen
Draw the line which the pen has drawn.
draw() - Method in class org.openpatch.scratch.internal.Applet
Draws the application window.
draw() - Method in class org.openpatch.scratch.internal.Image
Draw the image.
draw() - Method in class org.openpatch.scratch.Stage
 
draw(PGraphics) - Method in class org.openpatch.scratch.extensions.text.Text
 
draw(PGraphics) - Method in class org.openpatch.scratch.internal.Stamp
 
draw(PGraphics, double, double, double, double, RotationStyle, Shader) - Method in class org.openpatch.scratch.internal.Image
Draw the scaled image at a given position.
draw(PGraphics, float, float, float, float, Shader) - Method in class org.openpatch.scratch.internal.Image
Draw the scaled image at a given position.
drawAsBackground(PGraphics) - Method in class org.openpatch.scratch.internal.Image
Draw the image as a background.
drawDebug(PGraphics) - Method in class org.openpatch.scratch.extensions.hitbox.Hitbox
Draws the hitbox with a debug color.
drawDebug(PGraphics, double, double, double, double, RotationStyle) - Method in class org.openpatch.scratch.internal.Image
Draw the scaled image at a given position.
drawShape(PGraphics) - Method in class org.openpatch.scratch.extensions.hitbox.Hitbox
Draws the shape.

E

ellipse - Variable in class org.openpatch.scratch.extensions.tiled.MapObject
An object representing an ellipse shape.
enableHitbox() - Method in class org.openpatch.scratch.Sprite
Enables the hitbox for the sprite.
equals(Object) - Method in class org.openpatch.scratch.extensions.math.Vector2
 
eraseAll() - Method in class org.openpatch.scratch.extensions.pen.Pen
Erases all.
eraseAll() - Method in class org.openpatch.scratch.Stage
Erases all lines on the pen layer.
eraseBackground() - Method in class org.openpatch.scratch.Stage
When this method is called, the background buffer will be erased.
eraseForeground() - Method in class org.openpatch.scratch.Stage
When this method is called, the foreground buffer will be erased.
eraseUI() - Method in class org.openpatch.scratch.Stage
This method marks the UI buffer to be erased, which will be processed in the next update cycle.
eToThePowerOf(double) - Static method in class org.openpatch.scratch.Operators
"e" is an abbreviation for "Euler's number", which is about 2.718.
everyMillis(int) - Method in class org.openpatch.scratch.extensions.timer.Timer
Checks if the specified number of milliseconds has passed since the last time this method returned true.
exit() - Method in class org.openpatch.scratch.Stage
Close the window and therefore the whole application.
exit() - Method in class org.openpatch.scratch.Window
Exits the application by invoking the `whenExits` method and then calling the `exit` method on the `Applet` instance.

F

FFmpegRecorder - Class in org.openpatch.scratch.extensions.recorder
The FFmpegRecorder class extends the Recorder class to provide functionality for recording frames and converting them into a video file using FFmpeg.
FFmpegRecorder(String) - Constructor for class org.openpatch.scratch.extensions.recorder.FFmpegRecorder
Constructs an FFmpegRecorder object with the specified path.
File - Class in org.openpatch.scratch.extensions.fs
The File class provides methods to save and load objects to and from files in JSON or XML format.
File() - Constructor for class org.openpatch.scratch.extensions.fs.File
 
find(Class<T>) - Method in class org.openpatch.scratch.Stage
Find sprites of a given class.
findPensOf(Class<T>) - Method in class org.openpatch.scratch.Stage
Find texts of a given class.
findSpritesOf(Class<T>) - Method in class org.openpatch.scratch.Stage
Find sprites of a given class.
findTextsOf(Class<T>) - Method in class org.openpatch.scratch.Stage
Find texts of a given class.
finish() - Method in class org.openpatch.scratch.internal.AnimatedGifEncoder
Flushes any pending data and closes output file.
FIREBRICK - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
floorOf(double) - Static method in class org.openpatch.scratch.Operators
This always rounds the number down to the greatest whole number less than or equal to the number.
FLORAL_WHITE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
Font - Class in org.openpatch.scratch.internal
The Font class represents a font that can be used to render text on the screen.
Font(String, String) - Constructor for class org.openpatch.scratch.internal.Font
Constructs a font with the specified name and path.
Font(Font) - Constructor for class org.openpatch.scratch.internal.Font
Copy constructor.
foregroundStamps - Variable in class org.openpatch.scratch.Stage
 
FOREST_GREEN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
forMillis(int) - Method in class org.openpatch.scratch.extensions.timer.Timer
Checks if the specified amount of milliseconds has passed since the method was first called.
FrameRecorder - Class in org.openpatch.scratch.extensions.recorder
The FrameRecorder class extends the Recorder class to provide functionality for saving frames of an applet as PNG files.
FrameRecorder(String) - Constructor for class org.openpatch.scratch.extensions.recorder.FrameRecorder
Constructs a new FrameRecorder with the specified output folder.
fromPolar(double, double) - Static method in class org.openpatch.scratch.extensions.math.Vector2
Constructor method for constructing a vector based on polar coordinates.
FUCHSIA - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 

G

GAINSBORO - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
getAll() - Method in class org.openpatch.scratch.Stage
Retrieves a list of all sprites in the current stage.
getAnimationFrame() - Method in class org.openpatch.scratch.extensions.animation.AnimatedSprite
Gets the current animation frame.
getAnimationInterval() - Method in class org.openpatch.scratch.extensions.animation.AnimatedSprite
Gets the interval between animation frames.
getBackgroundBuffer() - Method in class org.openpatch.scratch.Stage
Returns the pen buffer
getBlue() - Method in class org.openpatch.scratch.extensions.color.Color
Get the blue value.
getCamera() - Method in class org.openpatch.scratch.Stage
Retrieves the current camera instance associated with this stage.
getColor() - Method in class org.openpatch.scratch.extensions.pen.Pen
Retrieves the current color of the pen in HSB (Hue, Saturation, Brightness) format.
getCurrentBackdropIndex() - Method in class org.openpatch.scratch.Stage
Returns the current backdrop index
getCurrentBackdropName() - Method in class org.openpatch.scratch.Stage
Returns the current backdrop name
getCurrentCostumeIndex() - Method in class org.openpatch.scratch.Sprite
Returns the current costume index
getCurrentCostumeName() - Method in class org.openpatch.scratch.Sprite
Returns the current costume name
getCurrentDay() - Method in class org.openpatch.scratch.Sprite
Returns the current day of the month
getCurrentDay() - Method in class org.openpatch.scratch.Stage
Returns the current day of the month
getCurrentDayOfWeek() - Method in class org.openpatch.scratch.Sprite
Returns the current day of the week
getCurrentDayOfWeek() - Method in class org.openpatch.scratch.Stage
Returns the current day of the week
getCurrentFontIndex() - Method in class org.openpatch.scratch.extensions.text.Text
Returns the index of the current font.
getCurrentFontName() - Method in class org.openpatch.scratch.extensions.text.Text
Retrieves the name of the current font.
getCurrentHour() - Method in class org.openpatch.scratch.Sprite
Returns the current hour
getCurrentHour() - Method in class org.openpatch.scratch.Stage
Returns the current hour
getCurrentMillisecond() - Method in class org.openpatch.scratch.Sprite
Returns the current millisecond
getCurrentMillisecond() - Method in class org.openpatch.scratch.Stage
Returns the current millisecond
getCurrentMinute() - Method in class org.openpatch.scratch.Sprite
Returns the current minute
getCurrentMinute() - Method in class org.openpatch.scratch.Stage
Returns the current minute
getCurrentMonth() - Method in class org.openpatch.scratch.Sprite
Returns the current month
getCurrentMonth() - Method in class org.openpatch.scratch.Stage
Returns the current month
getCurrentSecond() - Method in class org.openpatch.scratch.Sprite
Returns the current second
getCurrentSecond() - Method in class org.openpatch.scratch.Stage
Returns the current second
getCurrentShader() - Method in class org.openpatch.scratch.Sprite
Retrieves the current shader.
getCurrentShader() - Method in class org.openpatch.scratch.Stage
Retrieves the current shader.
getCurrentShaderIndex() - Method in class org.openpatch.scratch.Sprite
Retrieves the index of the current shader.
getCurrentShaderIndex() - Method in class org.openpatch.scratch.Stage
Retrieves the index of the current shader.
getCurrentShaderName() - Method in class org.openpatch.scratch.Sprite
Retrieves the name of the current shader.
getCurrentShaderName() - Method in class org.openpatch.scratch.Stage
Retrieves the name of the current shader.
getCurrentYear() - Method in class org.openpatch.scratch.Sprite
Returns the current year
getCurrentYear() - Method in class org.openpatch.scratch.Stage
Returns the current year
getDaysSince2000() - Method in class org.openpatch.scratch.Sprite
Returns the days since 2010/01/01
getDaysSince2000() - Method in class org.openpatch.scratch.Stage
Returns the days since 2010/01/01
getDebugBuffer() - Method in class org.openpatch.scratch.Stage
Returns the debug buffer.
getDefaultFont() - Static method in class org.openpatch.scratch.internal.Font
Returns the default font.
getDeltaTime() - Method in class org.openpatch.scratch.internal.Applet
Returns the time since the last frame in seconds.
getDeltaTime() - Method in class org.openpatch.scratch.Sprite
Gets the seconds passed since the last frame.
getDeltaTime() - Method in class org.openpatch.scratch.Stage
Gets the seconds passed since the last frame.
getDeltaTime() - Method in class org.openpatch.scratch.Window
Gets the seconds passed since the last frame.
getDirection() - Method in class org.openpatch.scratch.Sprite
Returns the direction of the sprite.
getFont() - Method in class org.openpatch.scratch.extensions.text.Text
Retrieves the name of the font.
getFont(int) - Method in class org.openpatch.scratch.internal.Font
 
getForegroundBuffer() - Method in class org.openpatch.scratch.Stage
Returns the foreground buffer.
getGreen() - Method in class org.openpatch.scratch.extensions.color.Color
Get the green value.
getH() - Method in class org.openpatch.scratch.extensions.color.Color
Get the hue value.
getHeight() - Method in class org.openpatch.scratch.internal.Applet
Returns the height of the current window.
getHeight() - Method in class org.openpatch.scratch.internal.Image
Returns the height
getHeight() - Method in class org.openpatch.scratch.Sprite
Return the height of the current costume or the pen size, when no costume is available.
getHeight() - Method in class org.openpatch.scratch.Stage
Return the height of the current costume or the pen size, when no costume is available.
getHeight() - Method in class org.openpatch.scratch.Window
Retrieves the height of the current window.
getHitbox() - Method in class org.openpatch.scratch.Sprite
Returns the hitbox of the sprite based on its current costume, position, and rotation.
getHSB() - Method in class org.openpatch.scratch.extensions.color.Color
Get the color value on the HSB spectrum.
getInstance() - Static method in class org.openpatch.scratch.internal.Applet
Returns the instance of the application.
getInstance() - Static method in class org.openpatch.scratch.Window
Returns the singleton instance of the Window class.
getL() - Method in class org.openpatch.scratch.extensions.color.Color
Get the luminosity value.
getMouse() - Method in class org.openpatch.scratch.Sprite
Retrieves the current position of the mouse cursor.
getMouse() - Method in class org.openpatch.scratch.Stage
 
getMouseX() - Method in class org.openpatch.scratch.Sprite
Returns the current x-position of the mouse cursor
getMouseX() - Method in class org.openpatch.scratch.Stage
Returns the current x-position of the mouse cursor
getMouseY() - Method in class org.openpatch.scratch.Sprite
Returns the current y-position of the mouse cursor
getMouseY() - Method in class org.openpatch.scratch.Stage
Returns the current y-position of the mouse cursor
getName() - Method in class org.openpatch.scratch.extensions.shader.Shader
Returns the name
getName() - Method in class org.openpatch.scratch.internal.Font
Returns the name of the font.
getName() - Method in class org.openpatch.scratch.internal.Image
Returns the name
getName() - Method in class org.openpatch.scratch.internal.Sound
Returns the name
getObjectsFromLayer(String) - Method in class org.openpatch.scratch.extensions.tiled.TiledMap
Retrieves the objects from a specified layer in the tiled map.
getOut() - Method in class org.openpatch.scratch.internal.AnimatedGifEncoder
 
getPen() - Method in class org.openpatch.scratch.Sprite
Returns the pen of the sprite.
getPixel(int, int) - Method in class org.openpatch.scratch.internal.Image
Returns the pixel at the given position
getPoints() - Method in class org.openpatch.scratch.extensions.tiled.Polygon
Returns the points that make up the polygon as an array of double arrays.
getPosition() - Method in class org.openpatch.scratch.extensions.camera.Camera
Returns the position of the sprite
getPosition() - Method in class org.openpatch.scratch.extensions.text.Text
Retrieves the current position as a Vector2 object.
getPosition() - Method in class org.openpatch.scratch.Sprite
Retrieves the current position of the sprite.
getProperty(String) - Method in class org.openpatch.scratch.extensions.tiled.MapObject
Retrieves the value of a property with the specified name from the properties list.
getPropertyBoolean(String) - Method in class org.openpatch.scratch.extensions.tiled.MapObject
Retrieves the value of the specified property as a boolean.
getPropertyFloat(String) - Method in class org.openpatch.scratch.extensions.tiled.MapObject
Retrieves the value of a specified property as a float.
getPropertyInt(String) - Method in class org.openpatch.scratch.extensions.tiled.MapObject
Retrieves the value of a property with the specified name and converts it to an integer.
getPShader() - Method in class org.openpatch.scratch.extensions.shader.Shader
Returns the shader
getRandom() - Static method in class org.openpatch.scratch.extensions.color.HtmlColor
Returns a random HTML color.
getRed() - Method in class org.openpatch.scratch.extensions.color.Color
Get the red value.
getS() - Method in class org.openpatch.scratch.extensions.color.Color
Get the saturation value.
getShader(String) - Method in class org.openpatch.scratch.Sprite
Retrieves a shader by name.
getShader(String) - Method in class org.openpatch.scratch.Stage
Retrieves a shader by name.
getShape() - Method in class org.openpatch.scratch.extensions.hitbox.Hitbox
Returns the shape of the hitbox.
getShape() - Method in class org.openpatch.scratch.extensions.tiled.MapObject
Returns a Shape object representing the current map object.
getSize() - Method in class org.openpatch.scratch.extensions.pen.Pen
Returns the size of the pen
getSize() - Method in class org.openpatch.scratch.Sprite
Returns the size of the sprite.
getStage() - Method in class org.openpatch.scratch.extensions.text.Text
Retrieves the current stage associated with this object.
getStage() - Method in class org.openpatch.scratch.internal.Applet
Returns the current stage of the application.
getStage() - Method in class org.openpatch.scratch.Sprite
Retrieves the current stage associated with this sprite.
getStage() - Method in class org.openpatch.scratch.Window
Retrieves the current stage from the Applet instance.
getText() - Method in class org.openpatch.scratch.Sprite
Retrieves the text associated with this sprite.
getTextSize() - Method in class org.openpatch.scratch.extensions.text.Text
Returns the size of the text.
getTextSize() - Method in class org.openpatch.scratch.internal.Applet
Returns the current text size.
getTimer() - Method in class org.openpatch.scratch.Sprite
Return the default timer
getTimer() - Method in class org.openpatch.scratch.Stage
Returns the timer
getTimer(String) - Method in class org.openpatch.scratch.Sprite
Return a timer by name
getTimer(String) - Method in class org.openpatch.scratch.Stage
Returns a timer by name
getTint() - Method in class org.openpatch.scratch.internal.Image
Returns the tint
getTint() - Method in class org.openpatch.scratch.Sprite
Retrieves the tint value of the current costume.
getTouchingSprite(Class<T>) - Method in class org.openpatch.scratch.Sprite
Returns the first sprite of the specified type that is currently touching this sprite.
getTouchingSprites(Class<T>) - Method in class org.openpatch.scratch.Sprite
Returns a list of sprites of the specified type that are currently touching this sprite.
getTransparency() - Method in class org.openpatch.scratch.internal.Image
Returns the transparency
getUIBuffer() - Method in class org.openpatch.scratch.Stage
Returns the PGraphics object representing the UI buffer.
getVolume() - Method in class org.openpatch.scratch.internal.Sound
Returns the volume
getWidth() - Method in class org.openpatch.scratch.extensions.text.Text
Returns the width of the text.
getWidth() - Method in class org.openpatch.scratch.internal.Applet
Returns the width of the current window.
getWidth() - Method in class org.openpatch.scratch.internal.Image
Returns the width
getWidth() - Method in class org.openpatch.scratch.Sprite
Return the width of the current costume or the pen size, when no costume is available.
getWidth() - Method in class org.openpatch.scratch.Stage
Return the width of the current costume or the pen size, when no costume is available.
getWidth() - Method in class org.openpatch.scratch.Window
Retrieves the width of the current window.
getX() - Method in class org.openpatch.scratch.extensions.camera.Camera
Returns the x coordinate of the sprite
getX() - Method in class org.openpatch.scratch.extensions.math.Vector2
Returns the x coordinate of the vector
getX() - Method in class org.openpatch.scratch.extensions.text.Text
Returns the x-coordinate of this object.
getX() - Method in class org.openpatch.scratch.Sprite
Returns the x coordinate of the sprite
getY() - Method in class org.openpatch.scratch.extensions.camera.Camera
Returns the y coordinate of the sprite
getY() - Method in class org.openpatch.scratch.extensions.math.Vector2
Returns the y coordinate of the vector
getY() - Method in class org.openpatch.scratch.extensions.text.Text
Returns the y-coordinate of this object.
getY() - Method in class org.openpatch.scratch.Sprite
Returns the y coordinate of the sprite
getZoom() - Method in class org.openpatch.scratch.extensions.camera.Camera
Returns the zoom level
GHOST_WHITE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
GifRecorder - Class in org.openpatch.scratch.extensions.recorder
The GifRecorder class is responsible for recording and saving frames as GIF images.
GifRecorder(String) - Constructor for class org.openpatch.scratch.extensions.recorder.GifRecorder
Constructs a new GifRecorder object.
goLayersBackwards(int) - Method in class org.openpatch.scratch.Sprite
Moves the sprite backwards by a specified number of layers in the stage.
goLayersBackwards(Sprite, int) - Method in class org.openpatch.scratch.Stage
Moves the specified sprite backwards by a given number of layers in the sprite list.
goLayersForwards(int) - Method in class org.openpatch.scratch.Sprite
Moves the sprite forward by a specified number of layers within its stage.
goLayersForwards(Sprite, int) - Method in class org.openpatch.scratch.Stage
Moves the specified sprite forward by a given number of layers in the sprite list.
GOLD - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
GOLDENROD - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
goToBackground() - Method in class org.openpatch.scratch.extensions.pen.Pen
Sets the pen to the background.
goToBackLayer() - Method in class org.openpatch.scratch.Sprite
Moves the sprite to the back layer of the stage.
goToBackLayer(Sprite) - Method in class org.openpatch.scratch.Stage
Moves the specified sprite to the back layer of the stage.
goToForeground() - Method in class org.openpatch.scratch.extensions.pen.Pen
Moves the pen to the foreground.
goToFrontLayer() - Method in class org.openpatch.scratch.Sprite
Moves this sprite to the front layer of the stage.
goToFrontLayer(Sprite) - Method in class org.openpatch.scratch.Stage
Moves the specified sprite to the front layer.
goToMousePointer() - Method in class org.openpatch.scratch.extensions.pen.Pen
Moves the object to the current position of the mouse pointer.
goToMousePointer() - Method in class org.openpatch.scratch.Sprite
Moves the sprite to the current position of the mouse pointer.
goToRandomPosition() - Method in class org.openpatch.scratch.extensions.pen.Pen
Moves the object to a random position within the boundaries of the stage.
goToRandomPosition() - Method in class org.openpatch.scratch.Sprite
Moves the sprite to a random position within the boundaries of the stage.
goToSprite(Sprite) - Method in class org.openpatch.scratch.Sprite
Moves this sprite to the position of the specified sprite.
goToUILayer(Sprite) - Method in class org.openpatch.scratch.Stage
Moves the specified sprite to the UI layer by removing it from the current list of sprites.
GRAY - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
GREEN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
GREEN_YELLOW - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 

H

hashCode() - Method in class org.openpatch.scratch.extensions.math.Vector2
 
height - Variable in class org.openpatch.scratch.extensions.tiled.MapObject
The height of the map object.
height - Variable in class org.openpatch.scratch.extensions.tiled.TilesetImage
 
hide() - Method in class org.openpatch.scratch.Sprite
Hides the sprite.
Hitbox - Class in org.openpatch.scratch.extensions.hitbox
Represents a hitbox with a shape that can be transformed by scaling, translating, and rotating it.
Hitbox(int[], int[]) - Constructor for class org.openpatch.scratch.extensions.hitbox.Hitbox
Constructs a hitbox with the specified x and y points.
Hitbox(Shape) - Constructor for class org.openpatch.scratch.extensions.hitbox.Hitbox
Constructs a hitbox with the specified shape.
HONEYDEW - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
HOT_PINK - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
HtmlColor - Class in org.openpatch.scratch.extensions.color
 
HtmlColor() - Constructor for class org.openpatch.scratch.extensions.color.HtmlColor
 

I

id - Variable in class org.openpatch.scratch.extensions.tiled.MapObject
The unique identifier of the map object.
ifOnEdgeBounce() - Method in class org.openpatch.scratch.Sprite
Checks if the sprite is on the edge of the stage and bounces it back if it is.
image - Variable in class org.openpatch.scratch.internal.Stamp
 
Image - Class in org.openpatch.scratch.internal
The base class for representing scratch costumes and backdrops.
Image(String, String) - Constructor for class org.openpatch.scratch.internal.Image
Construct a ScratchImage object by a name and a path to an image.
Image(String, String, int, int, int, int) - Constructor for class org.openpatch.scratch.internal.Image
Construct a ScratchImage object by a name and a path to a sprite sheet.
Image(Image) - Constructor for class org.openpatch.scratch.internal.Image
Copies a ScratchImage object
INDIAN_RED - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
INDIGO - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
intersects(Hitbox) - Method in class org.openpatch.scratch.extensions.hitbox.Hitbox
Checks if the hitbox intersects with another hitbox.
intervalMillis(int) - Method in class org.openpatch.scratch.extensions.timer.Timer
Checks if the specified interval in milliseconds has passed.
intervalMillis(int, boolean) - Method in class org.openpatch.scratch.extensions.timer.Timer
Checks if the specified interval in milliseconds has passed.
intervalMillis(int, int) - Method in class org.openpatch.scratch.extensions.timer.Timer
Checks if the specified interval in milliseconds has passed.
intervalMillis(int, int, boolean) - Method in class org.openpatch.scratch.extensions.timer.Timer
Checks if the specified interval in milliseconds has passed.
isAnimationPlayed() - Method in class org.openpatch.scratch.extensions.animation.AnimatedSprite
Checks if the animation is played.
isDebug() - Method in class org.openpatch.scratch.internal.Applet
Checks if the application is in debug mode.
isDebug() - Method in class org.openpatch.scratch.Stage
Checks if the application is in debug mode.
isDebug() - Method in class org.openpatch.scratch.Window
Checks if the application is in debug mode.
isInBackground() - Method in class org.openpatch.scratch.extensions.pen.Pen
Returns true if the pen is in the background.
isKeyPressed(int) - Method in class org.openpatch.scratch.Sprite
Returns true if the key is pressed
isKeyPressed(int) - Method in class org.openpatch.scratch.Stage
Returns true if the key is pressed
isMouseDown() - Method in class org.openpatch.scratch.Sprite
Returns true is the mouse button is down
isMouseDown() - Method in class org.openpatch.scratch.Stage
Returns true is the mouse button is down
isPlaying() - Method in class org.openpatch.scratch.internal.Sound
Return true if the sound file is playing.
isSoundPlaying(String) - Method in class org.openpatch.scratch.Sprite
Returns true if the sound if playing
isSoundPlaying(String) - Method in class org.openpatch.scratch.Stage
Returns true if the sound if playing
isTouchingEdge() - Method in class org.openpatch.scratch.Sprite
Returns true if the rectangle which contains the image is outside of the stage
isTouchingMousePointer() - Method in class org.openpatch.scratch.Sprite
Returns true is the mouse pointer is touching a non transparent area of the sprite.
isTouchingSprite(Class<? extends Sprite>) - Method in class org.openpatch.scratch.Sprite
Checks if this sprite is touching any sprite of the specified class type.
isTouchingSprite(Sprite) - Method in class org.openpatch.scratch.Sprite
Checks if this sprite is touching another sprite.
isUI() - Method in class org.openpatch.scratch.extensions.text.Text
Checks if the current instance is a UI element.
isUI() - Method in class org.openpatch.scratch.Sprite
Checks if the sprite is part of the user interface.
isUI(boolean) - Method in class org.openpatch.scratch.Sprite
Sets the UI status of the sprite.
isVisible() - Method in class org.openpatch.scratch.Sprite
Returns if the sprite is visible
IVORY - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 

K

KeyCode - Class in org.openpatch.scratch
Contains virtual key code constants for keyboard input handling.
KeyCode() - Constructor for class org.openpatch.scratch.KeyCode
 
keyEvent(KeyEvent) - Method in class org.openpatch.scratch.internal.Applet
Handles keyboard events.
keyEvent(KeyEvent) - Method in class org.openpatch.scratch.Sprite
 
keyEvent(KeyEvent) - Method in class org.openpatch.scratch.Stage
 
KHAKI - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 

L

LAVENDER - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
LAVENDER_BLUSH - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
LAWN_GREEN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
LEFT - Enum constant in enum class org.openpatch.scratch.MouseCode
Represents the left mouse button.
LEFT - Static variable in class org.openpatch.scratch.extensions.text.TextAlign
 
LEFT_RIGHT - Enum constant in enum class org.openpatch.scratch.RotationStyle
Sprite can only face left or right
LEMON_CHIFFON - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
length() - Method in class org.openpatch.scratch.extensions.math.Vector2
Calculates the length of the vector.
lengthSq() - Method in class org.openpatch.scratch.extensions.math.Vector2
Calculates the squared length of the vector.
lerp(double, double, double) - Static method in class org.openpatch.scratch.Operators
Calculates a number between two numbers at a specific increment.
LIGHT_BLUE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
LIGHT_CORAL - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
LIGHT_CYAN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
LIGHT_GOLDENROD_YELLOW - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
LIGHT_GRAY - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
LIGHT_GREEN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
LIGHT_PINK - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
LIGHT_SALMON - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
LIGHT_SEA_GREEN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
LIGHT_SKY_BLUE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
LIGHT_SLATE_GRAY - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
LIGHT_STEEL_BLUE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
LIGHT_YELLOW - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
LIME - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
LIME_GREEN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
LINEN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
lnOf(double) - Static method in class org.openpatch.scratch.Operators
ln is "natural log." It figures out how many times e would have to be multiplied by itself to get the value.
load(String, Class<T>) - Static method in class org.openpatch.scratch.extensions.fs.File
Loads an object of the specified class from a file at the given path.
loadAssets() - Method in class org.openpatch.scratch.internal.Applet
Loads assets from the specified directory.
loadFont(String) - Static method in class org.openpatch.scratch.internal.Font
Loads a font from the specified path and returns a map of font sizes.
loadImage(String) - Static method in class org.openpatch.scratch.internal.Image
Loads an image from a given path and returns it.
loadImage(String, int, int, int, int) - Static method in class org.openpatch.scratch.internal.Image
Loads an image from a given path and returns a tile of the image.
loadXML(String, Class<T>) - Static method in class org.openpatch.scratch.extensions.fs.File
Loads an object of the specified class from an XML file at the given path.
logOf(double) - Static method in class org.openpatch.scratch.Operators
"Log" is short for "logarithm." The log function figures out how many times 10 must be multiplied by itself to get the value.

M

MAGENTA - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
map(double, double, double, double, double) - Static method in class org.openpatch.scratch.Operators
Re-maps a number from one range to another.

In the first example above, the number 25 is converted from a value in the range of 0 to 100 into a value that ranges from the left edge of the window (0) to the right edge (width).

As shown in the second example, numbers outside the range are not clamped to the minimum and maximum parameters values, because out-of-range values are often intentional and useful.
MapObject - Class in org.openpatch.scratch.extensions.tiled
Represents a map object with various properties such as dimensions, position, visibility, and type.
MapObject() - Constructor for class org.openpatch.scratch.extensions.tiled.MapObject
 
MAROON - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
max(double...) - Static method in class org.openpatch.scratch.Operators
Determines the largest value in a sequence of numbers, and then returns that value.
max(int...) - Static method in class org.openpatch.scratch.Operators
Determines the largest value in a sequence of numbers, and then returns that value.
MEDIUM_AQUAMARINE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
MEDIUM_BLUE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
MEDIUM_ORCHID - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
MEDIUM_PURPLE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
MEDIUM_SEA_GREEN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
MEDIUM_SLATE_BLUE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
MEDIUM_SPRING_GREEN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
MEDIUM_TURQUOISE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
MEDIUM_VIOLET_RED - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
MIDNIGHT_BLUE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
millis() - Static method in class org.openpatch.scratch.extensions.timer.Timer
Returns the number of milliseconds since the program started.
min(double...) - Static method in class org.openpatch.scratch.Operators
Determines the smallest value in a sequence of numbers, and then returns that value.
min(int...) - Static method in class org.openpatch.scratch.Operators
Determines the smallest value in a sequence of numbers, and then returns that value.
MINT_CREAM - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
MISTY_ROSE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
MOCCASIN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
mod(double, double) - Static method in class org.openpatch.scratch.Operators
"mod" is an abbreviation for "modulo".
mod(int, int) - Static method in class org.openpatch.scratch.Operators
"mod" is an abbreviation for "modulo".
MouseCode - Enum Class in org.openpatch.scratch
The MouseCode enum represents the different mouse buttons that can be used.
mouseEvent(MouseEvent) - Method in class org.openpatch.scratch.internal.Applet
Handles mouse events.
mouseEvent(MouseEvent) - Method in class org.openpatch.scratch.Sprite
Handles mouse events.
mouseEvent(MouseEvent) - Method in class org.openpatch.scratch.Stage
 
move(double) - Method in class org.openpatch.scratch.Sprite
Moves the sprite towards the current rotation by the received steps.
move(Vector2) - Method in class org.openpatch.scratch.Sprite
Moves the sprite in the direction of the given vector.
multiply(double) - Method in class org.openpatch.scratch.extensions.math.Vector2
Multiplies a scalar and return the result.

N

name - Variable in class org.openpatch.scratch.extensions.tiled.MapObject
The name of the map object.
name - Variable in class org.openpatch.scratch.extensions.tiled.Property
The name of the property.
NAVAJO_WHITE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
NAVY - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
nextBackdrop() - Method in class org.openpatch.scratch.Stage
Switch to the next backdrop.
nextCostume() - Method in class org.openpatch.scratch.Sprite
Switch to the next costume.
nextFont() - Method in class org.openpatch.scratch.extensions.text.Text
Advances to the next font in the list of available fonts.
nextShader() - Method in class org.openpatch.scratch.Sprite
Sets the next shader as the current shader.
nextShader() - Method in class org.openpatch.scratch.Stage
Sets the next shader as the current shader.
noise(double) - Static method in class org.openpatch.scratch.extensions.math.Random
 
noise(double, double) - Static method in class org.openpatch.scratch.extensions.math.Random
Returns the Open Simplex noise value at specified coordinates
noise(double, double, double) - Static method in class org.openpatch.scratch.extensions.math.Random
Returns the Open Simplex noise value at specified coordinates
noise2(long, double, double) - Static method in class org.openpatch.scratch.internal.OpenSimplex2S
2D OpenSimplex2S/SuperSimplex noise, standard lattice orientation.
noise2_ImproveX(long, double, double) - Static method in class org.openpatch.scratch.internal.OpenSimplex2S
2D OpenSimplex2S/SuperSimplex noise, with Y pointing down the main diagonal.
noise3_Fallback(long, double, double, double) - Static method in class org.openpatch.scratch.internal.OpenSimplex2S
3D OpenSimplex2S/SuperSimplex noise, fallback rotation option Use noise3_ImproveXY or noise3_ImproveXZ instead, wherever appropriate.
noise3_ImproveXY(long, double, double, double) - Static method in class org.openpatch.scratch.internal.OpenSimplex2S
3D OpenSimplex2S/SuperSimplex noise, with better visual isotropy in (X, Y).
noise3_ImproveXZ(long, double, double, double) - Static method in class org.openpatch.scratch.internal.OpenSimplex2S
3D OpenSimplex2S/SuperSimplex noise, with better visual isotropy in (X, Z).
noise4_Fallback(long, double, double, double, double) - Static method in class org.openpatch.scratch.internal.OpenSimplex2S
4D SuperSimplex noise, fallback lattice orientation.
noise4_ImproveXY_ImproveZW(long, double, double, double, double) - Static method in class org.openpatch.scratch.internal.OpenSimplex2S
4D SuperSimplex noise, with XY and ZW forming orthogonal triangular-based planes.
noise4_ImproveXYZ(long, double, double, double, double) - Static method in class org.openpatch.scratch.internal.OpenSimplex2S
4D SuperSimplex noise, with XYZ oriented like noise3_Fallback and W for an extra degree of freedom.
noise4_ImproveXYZ_ImproveXY(long, double, double, double, double) - Static method in class org.openpatch.scratch.internal.OpenSimplex2S
4D SuperSimplex noise, with XYZ oriented like noise3_ImproveXY and W for an extra degree of freedom.
noise4_ImproveXYZ_ImproveXZ(long, double, double, double, double) - Static method in class org.openpatch.scratch.internal.OpenSimplex2S
4D SuperSimplex noise, with XYZ oriented like noise3_ImproveXZ and W for an extra degree of freedom.
noiseSeed(long) - Static method in class org.openpatch.scratch.extensions.math.Random
Sets the seed for the noise method.
normalVector() - Method in class org.openpatch.scratch.extensions.math.Vector2
Returns the normal vector, which is perpendicular to the vector.

O

OLD_LACE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
OLIVE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
OLIVE_DRAB - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
OpenSimplex2S - Class in org.openpatch.scratch.internal
K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex")
OpenSimplex2S() - Constructor for class org.openpatch.scratch.internal.OpenSimplex2S
 
Operators - Class in org.openpatch.scratch
The Operators class provides a collection of static methods for performing various mathematical operations.
ORANGE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
ORANGE_RED - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
ORCHID - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
org.openpatch.scratch - package org.openpatch.scratch
The org.openpatch.scratch package contains classes that provide an API for creating Scratch-like projects in Java.
org.openpatch.scratch.extensions.animation - package org.openpatch.scratch.extensions.animation
 
org.openpatch.scratch.extensions.camera - package org.openpatch.scratch.extensions.camera
 
org.openpatch.scratch.extensions.color - package org.openpatch.scratch.extensions.color
 
org.openpatch.scratch.extensions.fs - package org.openpatch.scratch.extensions.fs
 
org.openpatch.scratch.extensions.hitbox - package org.openpatch.scratch.extensions.hitbox
 
org.openpatch.scratch.extensions.math - package org.openpatch.scratch.extensions.math
 
org.openpatch.scratch.extensions.pen - package org.openpatch.scratch.extensions.pen
 
org.openpatch.scratch.extensions.recorder - package org.openpatch.scratch.extensions.recorder
 
org.openpatch.scratch.extensions.shader - package org.openpatch.scratch.extensions.shader
 
org.openpatch.scratch.extensions.text - package org.openpatch.scratch.extensions.text
 
org.openpatch.scratch.extensions.tiled - package org.openpatch.scratch.extensions.tiled
 
org.openpatch.scratch.extensions.timer - package org.openpatch.scratch.extensions.timer
 
org.openpatch.scratch.internal - package org.openpatch.scratch.internal
This package contains the internal classes of the Scratch plugin.

P

PALE_GOLDENROD - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
PALE_GREEN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
PALE_TURQUOISE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
PALE_VIOLET_RED - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
PAPAYA_WHIP - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
pause() - Method in class org.openpatch.scratch.internal.Sound
Pauses the playing of the sound file.
pauseSketch() - Method in class org.openpatch.scratch.internal.Applet
Pauses the sketch.
PEACH_PUFF - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
Pen - Class in org.openpatch.scratch.extensions.pen
The Pen class represents a drawing tool that can be used to draw paths on a stage.
Pen() - Constructor for class org.openpatch.scratch.extensions.pen.Pen
Constructs a new Pen object.
Pen(Pen) - Constructor for class org.openpatch.scratch.extensions.pen.Pen
Copies a Pen object.
Pen(Sprite) - Constructor for class org.openpatch.scratch.extensions.pen.Pen
Constructs a new Pen object associated with the given Sprite.
PERU - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
pickRandom(int, int) - Method in class org.openpatch.scratch.Sprite
Returns a random integer between the specified range.
pickRandom(int, int) - Method in class org.openpatch.scratch.Stage
Returns a random integer between the specified range (inclusive).
PINK - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
PLAIN - Enum constant in enum class org.openpatch.scratch.extensions.text.TextStyle
 
play() - Method in class org.openpatch.scratch.internal.Sound
Starts playing the sound file.
playAnimation(String) - Method in class org.openpatch.scratch.extensions.animation.AnimatedSprite
Plays the animation with the specified name.
playAnimation(String, boolean) - Method in class org.openpatch.scratch.extensions.animation.AnimatedSprite
Plays the animation with the specified name.
playSound(String) - Method in class org.openpatch.scratch.Sprite
Plays a sound.
playSound(String) - Method in class org.openpatch.scratch.Stage
Plays a sound.
PLUM - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
point - Variable in class org.openpatch.scratch.extensions.tiled.MapObject
An object representing a point.
pointInDirection(double) - Method in class org.openpatch.scratch.Sprite
Points the sprite in the specified direction.
pointInDirection(Vector2) - Method in class org.openpatch.scratch.Sprite
Points the sprite in the direction of the given vector.
points - Variable in class org.openpatch.scratch.extensions.tiled.Polygon
The points that make up the polygon.
points - Variable in class org.openpatch.scratch.extensions.tiled.Polyline
The list of points that make up the polyline.
pointTowardsMousePointer() - Method in class org.openpatch.scratch.Sprite
Points the sprite towards the current position of the mouse pointer.
pointTowardsSprite(Sprite) - Method in class org.openpatch.scratch.Sprite
Points the current sprite towards the specified sprite.
polygon - Variable in class org.openpatch.scratch.extensions.tiled.MapObject
A Polygon object representing a polygon shape.
Polygon - Class in org.openpatch.scratch.extensions.tiled
The Polygon class represents a polygon object in Tiled.
Polygon() - Constructor for class org.openpatch.scratch.extensions.tiled.Polygon
 
polyline - Variable in class org.openpatch.scratch.extensions.tiled.MapObject
A Polyline object representing a polyline shape.
Polyline - Class in org.openpatch.scratch.extensions.tiled
The Polyline class represents a polyline object in Tiled.
Polyline() - Constructor for class org.openpatch.scratch.extensions.tiled.Polyline
 
post() - Method in class org.openpatch.scratch.extensions.recorder.Recorder
Called after each frame is drawn.
POWDER_BLUE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
pre() - Method in class org.openpatch.scratch.Stage
 
previousBackdrop() - Method in class org.openpatch.scratch.Stage
Switch to the previous backdrop.
properties - Variable in class org.openpatch.scratch.extensions.tiled.MapObject
A list of properties associated with the map object.
Property - Class in org.openpatch.scratch.extensions.tiled
The Property class represents a property of a Tiled object.
Property() - Constructor for class org.openpatch.scratch.extensions.tiled.Property
 
PURPLE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 

R

radiansToDegrees(double) - Static method in class org.openpatch.scratch.extensions.math.Utils
Converts an angle measured in radians to an approximately equivalent angle measured in degrees.
random() - Static method in class org.openpatch.scratch.extensions.math.Random
Returns a random double between 0 and 1.
random(double) - Static method in class org.openpatch.scratch.extensions.math.Random
Returns a random double between 0 and max.
random(double, double) - Static method in class org.openpatch.scratch.extensions.math.Random
Returns a random double between min and max.
Random - Class in org.openpatch.scratch.extensions.math
The Random class provides various methods for generating random values and noise.
randomBackdrop() - Method in class org.openpatch.scratch.Stage
Switch to a random backdrop.
randomInt(int) - Static method in class org.openpatch.scratch.extensions.math.Random
Returns a random integer between 0 and max.
randomInt(int, int) - Static method in class org.openpatch.scratch.extensions.math.Random
Returns a random integer between min and max.
randomPosition() - Static method in class org.openpatch.scratch.extensions.math.Random
Returns a random position with respect to the width of the window.
randomSeed(long) - Static method in class org.openpatch.scratch.extensions.math.Random
Sets the seed for the random method.
randomVector2() - Static method in class org.openpatch.scratch.extensions.math.Random
Returns a random unit vector
randomX() - Static method in class org.openpatch.scratch.extensions.math.Random
Return a random x coordinate with respect to the width of the window.
randomY() - Static method in class org.openpatch.scratch.extensions.math.Random
Return a random y coordinate with respect to the width of the window.
Recorder - Class in org.openpatch.scratch.extensions.recorder
The Recorder class provides a framework for recording frames to a file.
Recorder(String, String) - Constructor for class org.openpatch.scratch.extensions.recorder.Recorder
Constructs a new Recorder object with the specified file path and extension.
RED - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
redrawSketch() - Method in class org.openpatch.scratch.internal.Applet
Forces a redraw, even if the sketch is paused.
remove() - Method in class org.openpatch.scratch.extensions.text.Text
Removes this object from its current stage if it is associated with one.
remove() - Method in class org.openpatch.scratch.Sprite
Removes this sprite from its current stage.
remove(Class<? extends Sprite>) - Method in class org.openpatch.scratch.Stage
Removes all sprites of the specified class from the stage.
remove(Pen) - Method in class org.openpatch.scratch.Stage
Removes the specified pen from the stage.
remove(Text) - Method in class org.openpatch.scratch.Stage
Removes the specified text from the stage.
remove(Sprite) - Method in class org.openpatch.scratch.Stage
Removes the specified sprite from the stage.
removeAll() - Method in class org.openpatch.scratch.Stage
Removes all elements from the stage.
removeAllPens() - Method in class org.openpatch.scratch.Stage
Removes all pens from the stage.
removeAllSprites() - Method in class org.openpatch.scratch.Stage
Removes all sprites from the stage.
removeAllTexts() - Method in class org.openpatch.scratch.Stage
Removes all texts from the stage.
removeBackdrop(String) - Method in class org.openpatch.scratch.Stage
Remove a backdrop from the stage.
removedFromStage(Stage) - Method in class org.openpatch.scratch.extensions.pen.Pen
This method is called when the pen is removed from the stage.
removedFromStage(Stage) - Method in class org.openpatch.scratch.extensions.text.Text
 
removeSound(String) - Method in class org.openpatch.scratch.Sprite
Remove a sound from the sprite.
removeSound(String) - Method in class org.openpatch.scratch.Stage
Remove a sound from the stage.
removeStage(String) - Method in class org.openpatch.scratch.internal.Applet
Deprecated.
since 4.0.0. Use setStage instead.
removeStage(String) - Method in class org.openpatch.scratch.Window
Deprecated.
since 4.0.0. Use setStage instead.
removeTimer(String) - Method in class org.openpatch.scratch.Sprite
Remove a timer by name.
removeTimer(String) - Method in class org.openpatch.scratch.Stage
Remove a timer by name.
reset() - Method in class org.openpatch.scratch.extensions.timer.Timer
Resets the timer.
resetAnimation() - Method in class org.openpatch.scratch.extensions.animation.AnimatedSprite
Resets the animation.
resetShader() - Method in class org.openpatch.scratch.Sprite
 
resetShader() - Method in class org.openpatch.scratch.Stage
 
resetZoom() - Method in class org.openpatch.scratch.extensions.camera.Camera
Resets the zoom level to 100
resumeSketch() - Method in class org.openpatch.scratch.internal.Applet
Resumes the sketch.
reverse() - Method in class org.openpatch.scratch.extensions.math.Vector2
Reverses a vector and returns the result.
RIGHT - Enum constant in enum class org.openpatch.scratch.MouseCode
Represents the right mouse button.
RIGHT - Static variable in class org.openpatch.scratch.extensions.text.TextAlign
 
ROSY_BROWN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
rotateBy(double) - Method in class org.openpatch.scratch.extensions.math.Vector2
Rotates the vector by an angle and returns the result.
rotateTo(double) - Method in class org.openpatch.scratch.extensions.math.Vector2
Rotates the vector to a given angle and returns the result.
rotateXY(double, double, double, double, double) - Static method in class org.openpatch.scratch.extensions.math.Utils
Rotates a point (x, y) around a specified origin (originX, originY) by a given angle in degrees.
rotation - Variable in class org.openpatch.scratch.extensions.tiled.MapObject
The rotation angle of the map object.
RotationStyle - Enum Class in org.openpatch.scratch
The RotationStyle enum represents the different rotation styles that a sprite can have in Scratch.
round(double) - Static method in class org.openpatch.scratch.Operators
The standard rules of rounding are followed; decimals that are .5 or higher are rounded up, whereas decimals less than .5 are rounded down.
ROYAL_BLUE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
run() - Method in class org.openpatch.scratch.Sprite
This method is intended to be overridden by subclasses to define the behavior of the sprite when it is run.
run() - Method in class org.openpatch.scratch.Stage
Executes the main logic of the stage.
runSketch() - Method in class org.openpatch.scratch.internal.Applet
 

S

SADDLE_BROWN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
SALMON - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
SANDY_BROWN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
save(String, T) - Static method in class org.openpatch.scratch.extensions.fs.File
Saves the given object to the specified path in the default file type (JSON).
saveFrame() - Method in class org.openpatch.scratch.extensions.recorder.FFmpegRecorder
Saves the current frame using the specified pattern.
saveFrame() - Method in class org.openpatch.scratch.extensions.recorder.FrameRecorder
Saves the current frame of the applet to the specified output folder.
saveFrame() - Method in class org.openpatch.scratch.extensions.recorder.GifRecorder
Saves the current frame of the applet as a GIF image.
saveFrame() - Method in class org.openpatch.scratch.extensions.recorder.Recorder
Saves the current frame.
saveXML(String, T) - Static method in class org.openpatch.scratch.extensions.fs.File
Saves the given object as an XML file at the specified path.
say(String) - Method in class org.openpatch.scratch.Sprite
Makes the sprite display a speech bubble with the specified text.
say(String, int) - Method in class org.openpatch.scratch.Sprite
Displays a text message for a specified duration.
SEA_GREEN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
SEASHELL - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
set(String, boolean) - Method in class org.openpatch.scratch.extensions.shader.Shader
 
set(String, boolean, boolean) - Method in class org.openpatch.scratch.extensions.shader.Shader
 
set(String, double) - Method in class org.openpatch.scratch.extensions.shader.Shader
 
set(String, double[], int) - Method in class org.openpatch.scratch.extensions.shader.Shader
 
set(String, double, double) - Method in class org.openpatch.scratch.extensions.shader.Shader
 
set(String, int) - Method in class org.openpatch.scratch.extensions.shader.Shader
 
set(String, int[], int) - Method in class org.openpatch.scratch.extensions.shader.Shader
 
set(String, int, int) - Method in class org.openpatch.scratch.extensions.shader.Shader
 
set(String, Color) - Method in class org.openpatch.scratch.extensions.shader.Shader
 
set(String, Vector2) - Method in class org.openpatch.scratch.extensions.shader.Shader
 
setAlign(int) - Method in class org.openpatch.scratch.extensions.text.Text
Sets the alignment of the text.
setAnimationFrame(int) - Method in class org.openpatch.scratch.extensions.animation.AnimatedSprite
Sets the current animation frame.
setAnimationInterval(int) - Method in class org.openpatch.scratch.extensions.animation.AnimatedSprite
Sets the interval between animation frames.
setBackgroundColor(double) - Method in class org.openpatch.scratch.extensions.text.Text
Sets the background color using the specified hue value.
setBackgroundColor(int, int, int) - Method in class org.openpatch.scratch.extensions.text.Text
Sets the background color using the specified RGB values.
setBackgroundColor(Color) - Method in class org.openpatch.scratch.extensions.text.Text
Sets the background color of the text.
setColor(double) - Method in class org.openpatch.scratch.extensions.pen.Pen
Set color via hue value
setColor(double) - Method in class org.openpatch.scratch.Stage
Sets the background color via a hue value
setColor(double, double, double) - Method in class org.openpatch.scratch.extensions.pen.Pen
Set color via rgb values
setColor(double, double, double) - Method in class org.openpatch.scratch.Stage
Sets the background color via a rgb value
setColor(Color) - Method in class org.openpatch.scratch.Stage
Sets the color of the stage.
setCursor(String) - Method in class org.openpatch.scratch.Stage
Sets the cursor image for the stage.
setCursor(String, int, int) - Method in class org.openpatch.scratch.Stage
Sets the cursor image and its active spot coordinates.
setDebug(boolean) - Method in class org.openpatch.scratch.internal.Applet
Enables or disables the debug mode for the application.
setDebug(boolean) - Method in class org.openpatch.scratch.Stage
Enables or disables the debug mode for the application.
setDebug(boolean) - Method in class org.openpatch.scratch.Window
Enables or disables the debug mode for the application.
setDefaultFont(String) - Method in class org.openpatch.scratch.Window
Sets the default font for the application.
setDelay(int) - Method in class org.openpatch.scratch.internal.AnimatedGifEncoder
Sets the delay time between each frame, or changes it for subsequent frames (applies to last frame added).
setDirection(double) - Method in class org.openpatch.scratch.Sprite
Sets the direction of the sprite to a given degrees.
setDirection(Vector2) - Method in class org.openpatch.scratch.Sprite
Sets the direction of the sprite to the direction of a given vector.
setDispose(int) - Method in class org.openpatch.scratch.internal.AnimatedGifEncoder
Sets the GIF frame disposal code for the last added frame and any subsequent frames.
setFont(String) - Method in class org.openpatch.scratch.extensions.text.Text
Sets the font name for the text.
setFrameRate(float) - Method in class org.openpatch.scratch.internal.AnimatedGifEncoder
Sets frame rate in frames per second.
setHitbox(int...) - Method in class org.openpatch.scratch.Sprite
Sets the hitbox for the sprite using the provided points.
setHitbox(int[], int[]) - Method in class org.openpatch.scratch.Sprite
Sets the hitbox for the sprite using the provided x and y coordinates.
setHitbox(Shape) - Method in class org.openpatch.scratch.Sprite
Sets the hitbox for the sprite using the specified shape.
setHitbox(Hitbox) - Method in class org.openpatch.scratch.Sprite
Sets the hitbox for the sprite using the provided Hitbox object.
setHSB(double) - Method in class org.openpatch.scratch.extensions.color.Color
Setting the color value after the HSB spectrum.
setHSB(double, double, double) - Method in class org.openpatch.scratch.extensions.color.Color
Setting the color value after the HSB spectrum.
setImage(String) - Method in class org.openpatch.scratch.internal.Image
Sets the image from a given path
setIsUI(boolean) - Method in class org.openpatch.scratch.extensions.text.Text
Sets the UI status of this object.
setName(String) - Method in class org.openpatch.scratch.extensions.shader.Shader
Sets the name
setName(String) - Method in class org.openpatch.scratch.internal.Image
Sets the name
setOnEdgeBounce(boolean) - Method in class org.openpatch.scratch.Sprite
Sets if the sprite should bounce when hitting the edge of the screen.
setPosition(double, double) - Method in class org.openpatch.scratch.extensions.camera.Camera
Sets the position of the sprite
setPosition(double, double) - Method in class org.openpatch.scratch.extensions.pen.Pen
Set the position if the pen is down.
setPosition(double, double) - Method in class org.openpatch.scratch.extensions.text.Text
Sets the position of the text
setPosition(double, double) - Method in class org.openpatch.scratch.Sprite
Sets the position of the sprite
setPosition(Vector2) - Method in class org.openpatch.scratch.extensions.camera.Camera
Sets the position of the sprite based on the coordinates of a given vector.
setPosition(Vector2) - Method in class org.openpatch.scratch.extensions.pen.Pen
Sets the position of the pen using a Vector2 object.
setPosition(Vector2) - Method in class org.openpatch.scratch.extensions.text.Text
Sets the position of the text object using a Vector2 object.
setPosition(Vector2) - Method in class org.openpatch.scratch.Sprite
Sets the position of the sprite based on the coordinates of a given vector.
setQuality(int) - Method in class org.openpatch.scratch.internal.AnimatedGifEncoder
Sets quality of color quantization (conversion of images to the maximum 256 colors allowed by the GIF specification).
setRepeat(int) - Method in class org.openpatch.scratch.internal.AnimatedGifEncoder
Sets the number of times the set of GIF frames should be played.
setRGB(double, double, double) - Method in class org.openpatch.scratch.extensions.color.Color
Setting the color value after the RGB spectrum
setRotationStyle(RotationStyle) - Method in class org.openpatch.scratch.Sprite
Sets the rotation style for the sprite.
setSize(double) - Method in class org.openpatch.scratch.extensions.pen.Pen
Set the size of the pen
setSize(double) - Method in class org.openpatch.scratch.internal.Image
Sets the size of the image to the specified percentage of the original size.
setSize(double) - Method in class org.openpatch.scratch.Sprite
Sets the size of the sprite.
setSize(int, int) - Method in class org.openpatch.scratch.internal.AnimatedGifEncoder
Sets the GIF frame size.
setSize(int, int) - Method in class org.openpatch.scratch.internal.Image
Sets the size of the image to the specified width and height.
setSorter(Comparator<? super Sprite>) - Method in class org.openpatch.scratch.Stage
Sets the sorter for the sprites.
setStage(Stage) - Method in class org.openpatch.scratch.internal.Applet
Sets the current stage of the application.
setStage(Stage) - Method in class org.openpatch.scratch.Window
Sets the current stage of the application.
setStrokeColor(double) - Method in class org.openpatch.scratch.extensions.text.Text
Sets the stroke color using the specified hue value.
setStrokeColor(int, int, int) - Method in class org.openpatch.scratch.extensions.text.Text
Sets the stroke color using the specified RGB values.
setStrokeColor(Color) - Method in class org.openpatch.scratch.extensions.text.Text
Sets the stroke color for the text.
setStyle(TextStyle) - Method in class org.openpatch.scratch.extensions.text.Text
Sets the style of the text.
setTextColor(double) - Method in class org.openpatch.scratch.extensions.text.Text
Sets the text color using the specified hue value.
setTextColor(int, int, int) - Method in class org.openpatch.scratch.extensions.text.Text
Sets the text color using RGB values.
setTextColor(Color) - Method in class org.openpatch.scratch.extensions.text.Text
Sets the color of the text.
setTextSize(int) - Method in class org.openpatch.scratch.extensions.text.Text
Sets the size of the text.
settings() - Method in class org.openpatch.scratch.internal.Applet
Use this method to call size().
setTint(double) - Method in class org.openpatch.scratch.internal.Image
Sets the tint with hue
setTint(double) - Method in class org.openpatch.scratch.Sprite
Sets the tint for the sprite with a hue.
setTint(double) - Method in class org.openpatch.scratch.Stage
Sets the tint for the current backdrop with a hue.
setTint(double, double, double) - Method in class org.openpatch.scratch.internal.Image
Sets the tint with rgb
setTint(double, double, double) - Method in class org.openpatch.scratch.Sprite
Sets the tint for the sprite with rgb.
setTint(double, double, double) - Method in class org.openpatch.scratch.Stage
Sets the tint for the current backdrop with rgb.
setTint(Color) - Method in class org.openpatch.scratch.Sprite
Sets the tint for the sprite with an color object.
setTransparency(double) - Method in class org.openpatch.scratch.extensions.pen.Pen
Set the transparency
setTransparency(double) - Method in class org.openpatch.scratch.internal.Image
Sets the transparency.
setTransparency(double) - Method in class org.openpatch.scratch.Sprite
Sets the transparency of the sprite.
setTransparency(double) - Method in class org.openpatch.scratch.Stage
Sets the transparency of the current backdrop.
setTransparent(Color) - Method in class org.openpatch.scratch.internal.AnimatedGifEncoder
Sets the transparent color for the last added frame and any subsequent frames.
setup() - Method in class org.openpatch.scratch.internal.Applet
Sets up the application window.
setVolume(double) - Method in class org.openpatch.scratch.internal.Sound
Sets the volume
setWidth(double) - Method in class org.openpatch.scratch.extensions.text.Text
Sets the width of the text.
setX(double) - Method in class org.openpatch.scratch.extensions.camera.Camera
Sets the x coordinate
setX(double) - Method in class org.openpatch.scratch.extensions.text.Text
Sets the x-coordinate for this object.
setX(double) - Method in class org.openpatch.scratch.Sprite
Sets the x coordinate
setY(double) - Method in class org.openpatch.scratch.extensions.camera.Camera
Sets the y coordinate
setY(double) - Method in class org.openpatch.scratch.extensions.text.Text
Sets the Y coordinate of the text.
setY(double) - Method in class org.openpatch.scratch.Sprite
Sets the y coordinate
setZoom(double) - Method in class org.openpatch.scratch.extensions.camera.Camera
Sets the zoom
setZoomLimit(double, double) - Method in class org.openpatch.scratch.extensions.camera.Camera
Sets the zoom limits
Shader - Class in org.openpatch.scratch.extensions.shader
 
Shader(String, String) - Constructor for class org.openpatch.scratch.extensions.shader.Shader
Constructor
Shader(Shader) - Constructor for class org.openpatch.scratch.extensions.shader.Shader
Copy constructor
show() - Method in class org.openpatch.scratch.Sprite
Shows the sprite.
showText(String) - Method in class org.openpatch.scratch.extensions.text.Text
Displays the specified text.
showText(String, int) - Method in class org.openpatch.scratch.extensions.text.Text
Displays the specified text for a given duration.
SIENNA - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
SILVER - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
sinOf(double) - Static method in class org.openpatch.scratch.Operators
"sin" is an abbreviation for "sine." The sine of an angle is the ratio between the length of the side that is opposite (across) the triangle from it and the length of the hypotenuse (the side that is across from the right angle).
SKY_BLUE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
SLATE_BLUE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
SLATE_GRAY - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
snapshot() - Method in class org.openpatch.scratch.extensions.recorder.GifRecorder
Captures a snapshot and saves it as a GIF.
snapshot(String) - Method in class org.openpatch.scratch.extensions.recorder.FrameRecorder
Takes a snapshot of the current frame and saves it to the specified filename.
SNOW - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
Sound - Class in org.openpatch.scratch.internal
The Sound class represents a sound object in Scratch.
Sound(String, String) - Constructor for class org.openpatch.scratch.internal.Sound
Creates a new ScratchSound object.
Sound(Sound) - Constructor for class org.openpatch.scratch.internal.Sound
Copies a ScratchSound object.
source - Variable in class org.openpatch.scratch.extensions.tiled.TilesetImage
 
SPEAK - Enum constant in enum class org.openpatch.scratch.extensions.text.TextStyle
 
SPRING_GREEN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
Sprite - Class in org.openpatch.scratch
The `Sprite` class represents a graphical object that can be displayed on a stage.
Sprite() - Constructor for class org.openpatch.scratch.Sprite
 
Sprite(String, String) - Constructor for class org.openpatch.scratch.Sprite
 
Sprite(Sprite) - Constructor for class org.openpatch.scratch.Sprite
Copies a Sprite object.
sqrtOf(double) - Static method in class org.openpatch.scratch.Operators
"sqrt" is an abbreviation for "square root." A number that is squared is multiplied by itself.
Stage - Class in org.openpatch.scratch
The Stage class represents a stage where various elements such as sprites, texts, pens, and backdrops can be added and manipulated.
Stage() - Constructor for class org.openpatch.scratch.Stage
Constructs a new Stage with default dimensions.
Stage(boolean) - Constructor for class org.openpatch.scratch.Stage
Constructs a new Stage.
Stage(boolean, String) - Constructor for class org.openpatch.scratch.Stage
Constructs a new Stage with the specified fullscreen mode and assets path.
Stage(int, int) - Constructor for class org.openpatch.scratch.Stage
Constructs a new Stage with the specified width and height.
Stage(int, int, boolean, String) - Constructor for class org.openpatch.scratch.Stage
Constructs a new Stage with the specified parameters.
Stage(int, int, String) - Constructor for class org.openpatch.scratch.Stage
Constructs a new Stage with the specified width, height, and assets path.
stamp() - Method in class org.openpatch.scratch.extensions.pen.Pen
Stamps the current sprite onto the canvas.
stamp() - Method in class org.openpatch.scratch.Sprite
 
Stamp - Class in org.openpatch.scratch.internal
 
Stamp(Image, double, double) - Constructor for class org.openpatch.scratch.internal.Stamp
 
Stamp(Image, double, double, double, RotationStyle) - Constructor for class org.openpatch.scratch.internal.Stamp
 
stampLayerToBackground(String) - Method in class org.openpatch.scratch.extensions.tiled.TiledMap
Stamps a specified layer onto the background.
stampLayerToForeground(String) - Method in class org.openpatch.scratch.extensions.tiled.TiledMap
Stamps the specified layer to the foreground.
stampToBackground() - Method in class org.openpatch.scratch.Sprite
Stamps the current sprite to the background.
stampToForeground() - Method in class org.openpatch.scratch.Sprite
Stamps the current sprite to the foreground.
stampToUI() - Method in class org.openpatch.scratch.Sprite
Stamps the current sprite to the ui.
start() - Method in class org.openpatch.scratch.extensions.recorder.GifRecorder
Starts the GIF recording process.
start() - Method in class org.openpatch.scratch.extensions.recorder.Recorder
Starts the recording process.
start(OutputStream) - Method in class org.openpatch.scratch.internal.AnimatedGifEncoder
Initiates GIF file creation on the given stream.
start(String) - Method in class org.openpatch.scratch.internal.AnimatedGifEncoder
Initiates writing of a GIF file with the specified name.
STEEL_BLUE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
stop() - Method in class org.openpatch.scratch.extensions.recorder.FFmpegRecorder
Stops the recording process and converts the recorded frames into a video file using FFmpeg.
stop() - Method in class org.openpatch.scratch.extensions.recorder.GifRecorder
Stops the GIF recording process and finalizes the GIF file.
stop() - Method in class org.openpatch.scratch.extensions.recorder.Recorder
Stops the recording process.
stop() - Method in class org.openpatch.scratch.internal.Sound
Stops the playing of the sound file.
stopAllSounds() - Method in class org.openpatch.scratch.Sprite
Stops the playing of all sounds of the sprite.
stopAllSounds() - Method in class org.openpatch.scratch.Stage
Stops the playing of all sounds of the stage.
stopSound(String) - Method in class org.openpatch.scratch.Sprite
Stops the playing of the sound with the given name
stopSound(String) - Method in class org.openpatch.scratch.Stage
Stops the playing of the sound with the given name
sub(Vector2) - Method in class org.openpatch.scratch.extensions.math.Vector2
Substracts another vector and returns the result
switchBackdrop(String) - Method in class org.openpatch.scratch.Stage
Switch to a backdrop by name.
switchCostume(double) - Method in class org.openpatch.scratch.Sprite
Switches the current costume of the sprite to the costume at the specified index.
switchCostume(String) - Method in class org.openpatch.scratch.Sprite
Switch to a costume by name.
switchFont(String) - Method in class org.openpatch.scratch.extensions.text.Text
Switches the current font to the font with the specified name.
switchShader(double) - Method in class org.openpatch.scratch.Sprite
Switch to a shader by index.
switchShader(double) - Method in class org.openpatch.scratch.Stage
Switch to a shader by index.
switchShader(String) - Method in class org.openpatch.scratch.Sprite
Switch to a shader by name.
switchShader(String) - Method in class org.openpatch.scratch.Stage
Switch to a shader by name.
switchStage(String) - Method in class org.openpatch.scratch.internal.Applet
Deprecated.
since 4.0.0. Use setStage instead.
switchStage(String) - Method in class org.openpatch.scratch.Window
Deprecated.
since 4.0.0. Use setStage instead.

T

TAN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
tanOf(double) - Static method in class org.openpatch.scratch.Operators
"tan" is the abbreviation for "tangent." The tangent of an angle is the ratio between the length of the side adjacent to it and the side opposite of it.
TEAL - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
tenToThePowerOf(double) - Static method in class org.openpatch.scratch.Operators
The 10^ function multiplies 10 times itself the value number of times.
Text - Class in org.openpatch.scratch.extensions.text
The Text class represents a text object that can be displayed on the stage.
Text() - Constructor for class org.openpatch.scratch.extensions.text.Text
Constructs a new Text object with default values.
Text(String, double, double, double) - Constructor for class org.openpatch.scratch.extensions.text.Text
Constructs a new Text object with the specified text, position, and width.
Text(String, double, double, double, TextStyle) - Constructor for class org.openpatch.scratch.extensions.text.Text
Constructs a new Text object with the specified text, position, width, and style.
Text(Text) - Constructor for class org.openpatch.scratch.extensions.text.Text
Copy constructor for the Text class.
Text(Sprite) - Constructor for class org.openpatch.scratch.extensions.text.Text
Constructs a new Text object associated with a given Sprite.
TextAlign - Class in org.openpatch.scratch.extensions.text
The TextAlign class provides constants for text alignment options.
TextAlign() - Constructor for class org.openpatch.scratch.extensions.text.TextAlign
 
TextStyle - Enum Class in org.openpatch.scratch.extensions.text
The TextStyle enum represents different styles of text that can be used.
think(String) - Method in class org.openpatch.scratch.Sprite
Displays a thought bubble with the specified text.
think(String, int) - Method in class org.openpatch.scratch.Sprite
Displays a thought bubble with the specified text for a given duration.
THINK - Enum constant in enum class org.openpatch.scratch.extensions.text.TextStyle
 
THISTLE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
TiledMap - Class in org.openpatch.scratch.extensions.tiled
The TiledMap class represents a map created using the Tiled map editor.
TiledMap(String, Stage) - Constructor for class org.openpatch.scratch.extensions.tiled.TiledMap
Constructs a new TiledMap object.
TilesetImage - Class in org.openpatch.scratch.extensions.tiled
 
TilesetImage() - Constructor for class org.openpatch.scratch.extensions.tiled.TilesetImage
 
Timer - Class in org.openpatch.scratch.extensions.timer
The Timer class provides methods for timing events in a graphical application.
Timer() - Constructor for class org.openpatch.scratch.extensions.timer.Timer
Constructs a new Timer object.
toGlobalPosition(Vector2) - Method in class org.openpatch.scratch.extensions.camera.Camera
Converts local camera coordinates to screen coordinates
toGlobalX(double) - Method in class org.openpatch.scratch.extensions.camera.Camera
Converts local camera x coordinate to screen x coordinate
toGlobalY(double) - Method in class org.openpatch.scratch.extensions.camera.Camera
Converts local camera y coordinate to screen y coordinate
toLocalPosition(Vector2) - Method in class org.openpatch.scratch.extensions.camera.Camera
Converts screen coordinates to local camera coordinates
toLocalX(double) - Method in class org.openpatch.scratch.extensions.camera.Camera
Converts screen x coordinate to local camera x coordinate
toLocalY(double) - Method in class org.openpatch.scratch.extensions.camera.Camera
Converts screen y coordinate to local camera y coordinate
TOMATO - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
toString() - Method in class org.openpatch.scratch.extensions.math.Vector2
 
toString() - Method in class org.openpatch.scratch.extensions.tiled.TiledMap
 
translateAndRotateAndResize(double, double, double, double, double, double) - Method in class org.openpatch.scratch.extensions.hitbox.Hitbox
Transforms the shape by scaling, translating, and rotating it.
transparent - Static variable in class org.openpatch.scratch.extensions.recorder.GifRecorder
The transparent color used in the GIF image.
turnLeft(double) - Method in class org.openpatch.scratch.Sprite
Rotates the sprite by a certain degrees to the left.
turnRight(double) - Method in class org.openpatch.scratch.Sprite
Rotates the sprite by a certain degrees to the right.
TURQUOISE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
type - Variable in class org.openpatch.scratch.extensions.tiled.MapObject
The type of the map object.
type - Variable in class org.openpatch.scratch.extensions.tiled.Property
The type of the property.

U

uiStamps - Variable in class org.openpatch.scratch.Stage
 
unitVector() - Method in class org.openpatch.scratch.extensions.math.Vector2
Returns the unit vector.
up() - Method in class org.openpatch.scratch.extensions.pen.Pen
Move the pen up.
Utils - Class in org.openpatch.scratch.extensions.math
The Utils class provides utility methods for mathematical operations.

V

value - Variable in class org.openpatch.scratch.extensions.tiled.Property
The value of the property.
valueOf(String) - Static method in enum class org.openpatch.scratch.extensions.text.TextStyle
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.openpatch.scratch.MouseCode
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.openpatch.scratch.RotationStyle
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.openpatch.scratch.extensions.text.TextStyle
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.openpatch.scratch.MouseCode
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.openpatch.scratch.RotationStyle
Returns an array containing the constants of this enum class, in the order they are declared.
Vector2 - Class in org.openpatch.scratch.extensions.math
The Vector2 class represents a 2D vector with x and y coordinates.
Vector2() - Constructor for class org.openpatch.scratch.extensions.math.Vector2
Constructor for the null vector.
Vector2(double, double) - Constructor for class org.openpatch.scratch.extensions.math.Vector2
Constructor for a 2D vector.
Vector2(Vector2) - Constructor for class org.openpatch.scratch.extensions.math.Vector2
Copy constructor for copying a vector.
VIOLET - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
visible - Variable in class org.openpatch.scratch.extensions.tiled.MapObject
The visibility status of the map object.
VK_0 - Static variable in class org.openpatch.scratch.KeyCode
VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39)
VK_1 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "1"
VK_2 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "2"
VK_3 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "3"
VK_4 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "4"
VK_5 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "5"
VK_6 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "6"
VK_7 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "7"
VK_8 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "8"
VK_9 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "9"
VK_A - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "A"
VK_ACCEPT - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Accept or Commit function key.
VK_ADD - Static variable in class org.openpatch.scratch.KeyCode
Constant for the add key.
VK_AGAIN - Static variable in class org.openpatch.scratch.KeyCode
 
VK_ALL_CANDIDATES - Static variable in class org.openpatch.scratch.KeyCode
Constant for the All Candidates function key.
VK_ALPHANUMERIC - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Alphanumeric function key.
VK_ALT - Static variable in class org.openpatch.scratch.KeyCode
Constant for the alt key
VK_ALT_GRAPH - Static variable in class org.openpatch.scratch.KeyCode
Constant for the AltGraph function key.
VK_AMPERSAND - Static variable in class org.openpatch.scratch.KeyCode
 
VK_ASTERISK - Static variable in class org.openpatch.scratch.KeyCode
 
VK_AT - Static variable in class org.openpatch.scratch.KeyCode
Constant for the "@" key.
VK_B - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "B"
VK_BACK_QUOTE - Static variable in class org.openpatch.scratch.KeyCode
 
VK_BACK_SLASH - Static variable in class org.openpatch.scratch.KeyCode
Constant for the back slash key, "\"
VK_BACK_SPACE - Static variable in class org.openpatch.scratch.KeyCode
Constant for the backspace key
VK_BEGIN - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Begin key.
VK_BRACELEFT - Static variable in class org.openpatch.scratch.KeyCode
 
VK_BRACERIGHT - Static variable in class org.openpatch.scratch.KeyCode
 
VK_C - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "C"
VK_CANCEL - Static variable in class org.openpatch.scratch.KeyCode
Constant for the cancel key
VK_CAPS_LOCK - Static variable in class org.openpatch.scratch.KeyCode
Constant for the caps lock key
VK_CIRCUMFLEX - Static variable in class org.openpatch.scratch.KeyCode
Constant for the "^" key.
VK_CLEAR - Static variable in class org.openpatch.scratch.KeyCode
Constant for the clear key
VK_CLOSE_BRACKET - Static variable in class org.openpatch.scratch.KeyCode
Constant for the close bracket key, "]"
VK_CODE_INPUT - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Code Input function key.
VK_COLON - Static variable in class org.openpatch.scratch.KeyCode
Constant for the ":" key.
VK_COMMA - Static variable in class org.openpatch.scratch.KeyCode
Constant for the comma key, ","
VK_COMPOSE - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Compose function key.
VK_CONTEXT_MENU - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Microsoft Windows Context Menu key.
VK_CONTROL - Static variable in class org.openpatch.scratch.KeyCode
Constant for the control key
VK_CONVERT - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Convert function key.
VK_COPY - Static variable in class org.openpatch.scratch.KeyCode
 
VK_CUT - Static variable in class org.openpatch.scratch.KeyCode
 
VK_D - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "D"
VK_DEAD_ABOVEDOT - Static variable in class org.openpatch.scratch.KeyCode
 
VK_DEAD_ABOVERING - Static variable in class org.openpatch.scratch.KeyCode
 
VK_DEAD_ACUTE - Static variable in class org.openpatch.scratch.KeyCode
 
VK_DEAD_BREVE - Static variable in class org.openpatch.scratch.KeyCode
 
VK_DEAD_CARON - Static variable in class org.openpatch.scratch.KeyCode
 
VK_DEAD_CEDILLA - Static variable in class org.openpatch.scratch.KeyCode
 
VK_DEAD_CIRCUMFLEX - Static variable in class org.openpatch.scratch.KeyCode
 
VK_DEAD_DIAERESIS - Static variable in class org.openpatch.scratch.KeyCode
 
VK_DEAD_DOUBLEACUTE - Static variable in class org.openpatch.scratch.KeyCode
 
VK_DEAD_GRAVE - Static variable in class org.openpatch.scratch.KeyCode
 
VK_DEAD_IOTA - Static variable in class org.openpatch.scratch.KeyCode
 
VK_DEAD_MACRON - Static variable in class org.openpatch.scratch.KeyCode
 
VK_DEAD_OGONEK - Static variable in class org.openpatch.scratch.KeyCode
 
VK_DEAD_SEMIVOICED_SOUND - Static variable in class org.openpatch.scratch.KeyCode
 
VK_DEAD_TILDE - Static variable in class org.openpatch.scratch.KeyCode
 
VK_DEAD_VOICED_SOUND - Static variable in class org.openpatch.scratch.KeyCode
 
VK_DECIMAL - Static variable in class org.openpatch.scratch.KeyCode
Constant for the decimal key
VK_DELETE - Static variable in class org.openpatch.scratch.KeyCode
Constant for the delete key.
VK_DIVIDE - Static variable in class org.openpatch.scratch.KeyCode
Constant for the divide key
VK_DOLLAR - Static variable in class org.openpatch.scratch.KeyCode
Constant for the "$" key.
VK_DOWN - Static variable in class org.openpatch.scratch.KeyCode
Constant for the non-numpad down arrow key.
VK_E - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "E"
VK_END - Static variable in class org.openpatch.scratch.KeyCode
Constant for the end key
VK_ENTER - Static variable in class org.openpatch.scratch.KeyCode
Constant for the enter key
VK_EQUALS - Static variable in class org.openpatch.scratch.KeyCode
Constant for the equals key, "="
VK_ESCAPE - Static variable in class org.openpatch.scratch.KeyCode
Constant for the escape key
VK_EURO_SIGN - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Euro currency sign key.
VK_EXCLAMATION_MARK - Static variable in class org.openpatch.scratch.KeyCode
Constant for the "!" key.
VK_F - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "F"
VK_F1 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F1 function key.
VK_F10 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F10 function key.
VK_F11 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F11 function key.
VK_F12 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F12 function key.
VK_F13 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F13 function key.
VK_F14 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F14 function key.
VK_F15 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F15 function key.
VK_F16 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F16 function key.
VK_F17 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F17 function key.
VK_F18 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F18 function key.
VK_F19 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F19 function key.
VK_F2 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F2 function key.
VK_F20 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F20 function key.
VK_F21 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F21 function key.
VK_F22 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F22 function key.
VK_F23 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F23 function key.
VK_F24 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F24 function key.
VK_F3 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F3 function key.
VK_F4 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F4 function key.
VK_F5 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F5 function key.
VK_F6 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F6 function key.
VK_F7 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F7 function key.
VK_F8 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F8 function key.
VK_F9 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the F9 function key.
VK_FINAL - Static variable in class org.openpatch.scratch.KeyCode
 
VK_FIND - Static variable in class org.openpatch.scratch.KeyCode
 
VK_FULL_WIDTH - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Full-Width Characters function key.
VK_G - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "G"
VK_GREATER - Static variable in class org.openpatch.scratch.KeyCode
 
VK_H - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "H"
VK_HALF_WIDTH - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Half-Width Characters function key.
VK_HELP - Static variable in class org.openpatch.scratch.KeyCode
 
VK_HIRAGANA - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Hiragana function key.
VK_HOME - Static variable in class org.openpatch.scratch.KeyCode
Constant for the home key
VK_I - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "I"
VK_INPUT_METHOD_ON_OFF - Static variable in class org.openpatch.scratch.KeyCode
Constant for the input method on/off key.
VK_INSERT - Static variable in class org.openpatch.scratch.KeyCode
 
VK_INVERTED_EXCLAMATION_MARK - Static variable in class org.openpatch.scratch.KeyCode
Constant for the inverted exclamation mark key.
VK_J - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "J"
VK_JAPANESE_HIRAGANA - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Japanese-Hiragana function key.
VK_JAPANESE_KATAKANA - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Japanese-Katakana function key.
VK_JAPANESE_ROMAN - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Japanese-Roman function key.
VK_K - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "K"
VK_KANA - Static variable in class org.openpatch.scratch.KeyCode
 
VK_KANA_LOCK - Static variable in class org.openpatch.scratch.KeyCode
Constant for the locking Kana function key.
VK_KANJI - Static variable in class org.openpatch.scratch.KeyCode
 
VK_KATAKANA - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Katakana function key.
VK_KP_DOWN - Static variable in class org.openpatch.scratch.KeyCode
Constant for the numeric keypad down arrow key.
VK_KP_LEFT - Static variable in class org.openpatch.scratch.KeyCode
Constant for the numeric keypad left arrow key.
VK_KP_RIGHT - Static variable in class org.openpatch.scratch.KeyCode
Constant for the numeric keypad right arrow key.
VK_KP_UP - Static variable in class org.openpatch.scratch.KeyCode
Constant for the numeric keypad up arrow key.
VK_L - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "L"
VK_LEFT - Static variable in class org.openpatch.scratch.KeyCode
Constant for the non-numpad left arrow key.
VK_LEFT_PARENTHESIS - Static variable in class org.openpatch.scratch.KeyCode
Constant for the "(" key.
VK_LESS - Static variable in class org.openpatch.scratch.KeyCode
 
VK_M - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "M"
VK_META - Static variable in class org.openpatch.scratch.KeyCode
 
VK_MINUS - Static variable in class org.openpatch.scratch.KeyCode
Constant for the minus key, "-"
VK_MODECHANGE - Static variable in class org.openpatch.scratch.KeyCode
 
VK_MULTIPLY - Static variable in class org.openpatch.scratch.KeyCode
Constant for the multiply key.
VK_N - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "N"
VK_NONCONVERT - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Don't Convert function key.
VK_NUM_LOCK - Static variable in class org.openpatch.scratch.KeyCode
Constant for the number lock key.
VK_NUMBER_SIGN - Static variable in class org.openpatch.scratch.KeyCode
Constant for the "#" key.
VK_NUMPAD0 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the number pad 0 key.
VK_NUMPAD1 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Numpad 1 key.
VK_NUMPAD2 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Numpad 2 key.
VK_NUMPAD3 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Numpad 3 key.
VK_NUMPAD4 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Numpad 4 key.
VK_NUMPAD5 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Numpad 5 key.
VK_NUMPAD6 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Numpad 6 key.
VK_NUMPAD7 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Numpad 7 key.
VK_NUMPAD8 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Numpad 8 key.
VK_NUMPAD9 - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Numpad 9 key.
VK_O - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "O"
VK_OPEN_BRACKET - Static variable in class org.openpatch.scratch.KeyCode
Constant for the open bracket key, "["
VK_P - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "P"
VK_PAGE_DOWN - Static variable in class org.openpatch.scratch.KeyCode
Constant for the page down key
VK_PAGE_UP - Static variable in class org.openpatch.scratch.KeyCode
Constant for the page up key
VK_PASTE - Static variable in class org.openpatch.scratch.KeyCode
 
VK_PAUSE - Static variable in class org.openpatch.scratch.KeyCode
Constant for the pause key
VK_PERIOD - Static variable in class org.openpatch.scratch.KeyCode
Constant for the period key, "."
VK_PLUS - Static variable in class org.openpatch.scratch.KeyCode
Constant for the "+" key.
VK_PREVIOUS_CANDIDATE - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Previous Candidate function key.
VK_PRINTSCREEN - Static variable in class org.openpatch.scratch.KeyCode
 
VK_PROPS - Static variable in class org.openpatch.scratch.KeyCode
 
VK_Q - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "Q"
VK_QUOTE - Static variable in class org.openpatch.scratch.KeyCode
 
VK_QUOTEDBL - Static variable in class org.openpatch.scratch.KeyCode
 
VK_R - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "R"
VK_RIGHT - Static variable in class org.openpatch.scratch.KeyCode
Constant for the non-numpad right arrow key.
VK_RIGHT_PARENTHESIS - Static variable in class org.openpatch.scratch.KeyCode
Constant for the ")" key.
VK_ROMAN_CHARACTERS - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Roman Characters function key.
VK_S - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "S"
VK_SCROLL_LOCK - Static variable in class org.openpatch.scratch.KeyCode
Constant for the scroll lock key.
VK_SEMICOLON - Static variable in class org.openpatch.scratch.KeyCode
Constant for the semicolon key, ";"
VK_SHIFT - Static variable in class org.openpatch.scratch.KeyCode
Constant for the shift key
VK_SLASH - Static variable in class org.openpatch.scratch.KeyCode
Constant for the forward slash key, "/"
VK_SPACE - Static variable in class org.openpatch.scratch.KeyCode
Constant for the space key
VK_STOP - Static variable in class org.openpatch.scratch.KeyCode
 
VK_SUBTRACT - Static variable in class org.openpatch.scratch.KeyCode
Constant for the subtract key
VK_T - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "T"
VK_TAB - Static variable in class org.openpatch.scratch.KeyCode
Constant for the tab key
VK_U - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "U"
VK_UNDERSCORE - Static variable in class org.openpatch.scratch.KeyCode
Constant for the "_" key.
VK_UNDO - Static variable in class org.openpatch.scratch.KeyCode
 
VK_UP - Static variable in class org.openpatch.scratch.KeyCode
Constant for the non-numpad up arrow key.
VK_V - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "V"
VK_W - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "W"
VK_WINDOWS - Static variable in class org.openpatch.scratch.KeyCode
Constant for the Microsoft Windows "Windows" key.
VK_X - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "X"
VK_Y - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "Y"
VK_Z - Static variable in class org.openpatch.scratch.KeyCode
Constant for the key, "Z"

W

wait(int) - Method in class org.openpatch.scratch.Stage
Stop the execution of the whole applications for the given milliseconds.
WHEAT - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
whenAddedToStage() - Method in class org.openpatch.scratch.extensions.text.Text
This method is called when the object is added to the stage.
whenAddedToStage() - Method in class org.openpatch.scratch.Sprite
This method is called when the sprite is added to the stage.
whenAddedToStage(Stage) - Method in class org.openpatch.scratch.extensions.text.Text
This method is called when the text is added to the stage.
whenAddedToStage(Stage) - Method in class org.openpatch.scratch.Sprite
This method is called when the sprite is added to the stage.
whenBackdropSwitches(String) - Method in class org.openpatch.scratch.Sprite
This method is called when the backdrop switches to the specified name.
whenBackdropSwitches(String) - Method in class org.openpatch.scratch.Stage
This method is called when the backdrop switches to the specified name.
whenClicked() - Method in class org.openpatch.scratch.Sprite
This method is called when the sprite is clicked.
whenExits() - Method in class org.openpatch.scratch.Window
This method is called when the window exits.
whenIReceive(Object) - Method in class org.openpatch.scratch.Sprite
This method is called when a message is received.
whenIReceive(Object) - Method in class org.openpatch.scratch.Stage
This method is called when a message is received.
whenIReceive(String) - Method in class org.openpatch.scratch.Sprite
This method is called when a message is received.
whenIReceive(String) - Method in class org.openpatch.scratch.Stage
This method is called when a specific message is received.
whenKeyPressed(int) - Method in class org.openpatch.scratch.Sprite
This method is called when a key is pressed.
whenKeyPressed(int) - Method in class org.openpatch.scratch.Stage
This method is called when a key is pressed.
whenKeyReleased(int) - Method in class org.openpatch.scratch.Sprite
This method is called when a key is released.
whenKeyReleased(int) - Method in class org.openpatch.scratch.Stage
This method is called when a key is released.
whenMouseClicked(MouseCode) - Method in class org.openpatch.scratch.Sprite
This method is called when a mouse click event occurs.
whenMouseClicked(MouseCode) - Method in class org.openpatch.scratch.Stage
This method is called when a mouse click event occurs.
whenMouseMoved(double, double) - Method in class org.openpatch.scratch.Sprite
This method is called when the mouse is moved.
whenMouseWheelMoved(int) - Method in class org.openpatch.scratch.Stage
This method is called when the mouse wheel is moved.
whenRemovedFromStage() - Method in class org.openpatch.scratch.extensions.text.Text
This method is called when the object is removed from the stage.
whenRemovedFromStage() - Method in class org.openpatch.scratch.Sprite
This method is called when the sprite is removed from the stage.
whenRemovedFromStage(Stage) - Method in class org.openpatch.scratch.extensions.text.Text
This method is called when the text is removed from the stage.
whenRemovedFromStage(Stage) - Method in class org.openpatch.scratch.Sprite
This method is called when the sprite is removed from the stage.
WHITE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
WHITE_SMOKE - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
width - Variable in class org.openpatch.scratch.extensions.tiled.MapObject
The width of the map object.
width - Variable in class org.openpatch.scratch.extensions.tiled.TilesetImage
 
Window - Class in org.openpatch.scratch
The Window class represents a singleton window for the application.
Window() - Constructor for class org.openpatch.scratch.Window
Constructs a new Window with default dimensions.
Window(boolean) - Constructor for class org.openpatch.scratch.Window
Constructs a new Window.
Window(boolean, String) - Constructor for class org.openpatch.scratch.Window
Constructs a new Window instance.
Window(int, int) - Constructor for class org.openpatch.scratch.Window
Constructs a new Window with the specified width and height.
Window(int, int, String) - Constructor for class org.openpatch.scratch.Window
Constructs a new Window with the specified width, height, and assets path.
Window(String) - Constructor for class org.openpatch.scratch.Window
Constructs a new Window with the specified assets.

X

x - Variable in class org.openpatch.scratch.extensions.tiled.MapObject
The x-coordinate of the map object.

Y

y - Variable in class org.openpatch.scratch.extensions.tiled.MapObject
The y-coordinate of the map object.
YELLOW - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
YELLOW_GREEN - Static variable in class org.openpatch.scratch.extensions.color.HtmlColor
 
A B C D E F G H I K L M N O P R S T U V W X Y 
All Classes and Interfaces|All Packages|Constant Field Values