Skip to content

CircleCanvasDrawable

Overview

Canvas drawable for Circle nodes.

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class CircleCanvasDrawable

import { CircleCanvasDrawable } from 'scenerystack/scenery';

Instance Methods

paintCanvas( wrapper, node, matrix )

Paints this drawable to a Canvas (the wrapper contains both a Canvas reference and its drawing context). @public

Assumes that the Canvas's context is already in the proper local coordinate frame for the node, and that any other required effects (opacity, clipping, etc.) have already been prepared.

This is part of the CanvasSelfDrawable API required to be implemented for subtypes.

@param {CanvasContextWrapper} wrapper - Contains the Canvas and its drawing context @param {Node} node - Our node that is being drawn @param {Matrix3} matrix - The transformation matrix applied for this node's coordinate system.

markDirtyRadius()

Called when the radius of the circle changes. @public

dispose()

Disposes the drawable. @public @override

Source Code

See the source for CircleCanvasDrawable.js in the scenery repository.