picture

Module(s): vncanvas-base, vncanvas-cform
Description: A cform element to display a sequence of images.

  • For best performance, use images of reasonable size.
  • Note: Use only on a 'cform', not a 'form'
  • Instantiating cform elements without using "cform" is not recommended.
picture, {param}
Creates an image sequence.
Parameters are given as {param:value, param:value, ...}
Parameter Attributes and Description
name:"picture_id"
This sets the id of the image sequence.
x:offset_from_top_left
Horizontal position of the picture element from the top-left of viewport window.
y:offset_from_top_left
Vertical position of the picture element from the top-left of viewport window.
fps:number
The target frames per second.
Too high fps setting is not recommended.
frames:[array_of_images]
An array of images to display sequentially.
This creates and displays a 8-image sequence at 10 fps.
  
chapter = [

	...
	picture, {name:"pic", x:328, y:300, fps:10, 
		frames:["animated0.png",
			"animated1.png",
			"animated2.png",
			"animated3.png",
			"animated4.png",
			"animated5.png",
			"animated6.png",
			"animated7.png"]},
	...
];