Scratch for Java

Drawing()

The canvas passed to DrawingSprite.draw(Drawing). Coordinates are relative to the sprite: x points right, y points up, and images are centred on their position. Images use the library's existing asset cache. Keep game projection and depth ordering in your game, then draw the resulting 2D view. The canvas is valid only during that draw call.

Examples

View on GitHub

Drawing()

Create Shareable URL

Select Sections