Graphics Class よくわらかん

Graphics Class

Defined in: Graphics:41

Module: EaselJS

The Graphics class exposes an easy to use API for generating vector drawing instructions and drawing them to a specified context. Note that you can use Graphics without any dependency on the EaselJS framework by calling draw directly, or it can be used with the Shape object to draw vector graphics within the context of an EaselJS display list.


There are two approaches to working with Graphics object: calling methods on a Graphics instance (the “Graphics API”), or instantiating Graphics command objects and adding them to the graphics queue via append. The former abstracts the latter, simplifying beginning and ending paths, fills, and strokes.

1 comment


メールアドレスが公開されることはありません。 * が付いている欄は必須項目です