Package org.openpatch.scratch


package org.openpatch.scratch
  • Class
    Description
    A rectangle along the axes: the bounds of a shape.
    The camera of a stage: which part of the world the stage shows.
    A circle.
    The date and time of the computer the program runs on, the same values Scratch's "current [year]" and "days since 2000" blocks report.
    A colour.
    An ellipse inside a rectangle along the axes.
    Provides predefined HTML colors as Color objects.
    Key codes for keyboard input handling.
    Starts a program so that its window runs on the process's first thread, which macOS requires (with -XstartOnFirstThread); the program's main runs on a second thread.
    One of the four layers a stage draws, from back to front, after its backdrop.
    The MouseCode enum represents the different mouse buttons that can be used.
    The Operators class provides a collection of static methods for performing various mathematical operations.
    A pen draws lines onto the canvas of its layer, like Scratch's pen.
    The pixels of the stage or of an image file, to read colours from.
    A polygon given by its corners, concave ones included.
    The Random class provides various methods for generating random values and noise.
    A rectangle along the axes.
    The RotationStyle enum represents the different rotation styles that a sprite can have in Scratch.
    Thrown when a program cannot go on, for example because a costume or a sound could not be loaded.
    A shader: a small program the graphics card runs for every pixel of a sprite (or of the whole stage) to change how it looks.
    The shaders of a sprite or of the stage.
    A shape on the stage: a polygon, rectangle, circle, ellipse or triangle.
    One copy of a sound started with playSoundCopy: it can be stopped or made louder or quieter while it plays, independently of other copies.
    A sprite: an object on the stage with costumes, a position and a direction, and code that runs every tick in Sprite.run(), like a sprite and its scripts in Scratch.
    A stage: one screen of a program, with its backdrops, sprites, texts and pens, and code that runs every tick in Stage.run().
    A text on the stage: plain, in a box, or in a speech or thought bubble.
    Where a piece of text sits relative to its position.
    The TextStyle enum represents different styles of text that can be used.
    A timer counting game time in seconds, like Scratch's timer: it stops while the game is paused and runs faster at a higher game speed, so it agrees with everything else that happens in ticks.
    How one stage gives way to the next in window.transitionToStage(…).
    A triangle.
    The Vector2 class represents a 2D vector with x and y coordinates.
    The window of a program: there is one, created first, and it shows one stage at a time.