Class: SVG_Costume

SVG_Costume

new SVG_Costume (svgImage, name, rotationCenter)

Name Type Description
svgImage ?
name String
rotationCenter Point optional

Extends

Methods

boundingBox ()Rectangle inherited

Returns:
Type Description
Rectangle

bounds ()Rectangle inherited

Returns:
Type Description
Rectangle

canvasBoundingBox (pic)Rectangle inherited

Name Type Description
pic HTMLCanvasElement
Returns:
Type Description
Rectangle

center ()Point inherited

Returns:
Type Description
Point
Returns:
Type Description
Costume

edit (aWorld, anIDE, isnew, oncancel, onsubmit) inherited

Name Type Description
aWorld WorldMorph
anIDE IDE_Morph
isnew boolean optional
oncancel function optional
onsubmit function optional

editRotationPointOnly (aWorld) inherited

Name Type Description
aWorld WorldMorph

extent ()Point inherited

Returns:
Type Description
Point

flipped ()Costume inherited

Returns:
Type Description
Costume

height ()number inherited

Returns:
Type Description
number

isTainted ()boolean inherited

Returns:
Type Description
boolean

maxExtent ()Point inherited

Returns:
Type Description
Point

shrinkToFit (extentPoint) inherited overrides

Name Type Description
extentPoint Point

shrinkWrap () inherited

thumbnail (extentPoint)HTMLCanvasElement inherited

Name Type Description
extentPoint Point
Returns:
Type Description
HTMLCanvasElement

toString ()String inherited overrides

Returns:
Type Description
String
Example
'a Costume(name)'

width ()number inherited

Returns:
Type Description
number