NoveltyML reference > Objects > SmartCanvas


A smart canvas object.
A smart canvas is a container object that will draw its child objects within its own bounding rectangle (size). It has many similarities with a Canvas but does not utilize an internal texture unless it is necessary (see remarks).

Remarks: When a smart canvas has a non-white color, less than 100% opacity or a non-normal blending mode, it will be rendered as a Canvas. Its texture resolution will be automatically calculated for optimal visual quality. This is the "smarts" in SmartCanvas.

See also: <Canvas>

SmartCanvas attributes

Attribute Description
dynamic Enable/disable dynamic (smart) rendering
flip Flip image vertically
mirror Flip image horizontally

Additionally, this asset type inherits all object attributes.

dynamic [bool]

Set this to false to disable smart rendering.
Default value: true

dynamic = "false"

flip [bool]

Set to true to vertically reverse texture.

flip = "true"

mirror [bool]

Set to true to horizontally reverse texture.

mirror = "true"

Valid child tags

Child tags Description
<Traits> Object traits list
<Meta> Meta information
Objects... Other objects

Valid meta class values

Class Description
"actor" Hint to editor that this object is a character/actor.


<SmartCanvas name="My canvas" size="300,300" >
	<Image texture="My texture" />
	<Border texture="My other texture" />

Back to top