Talk:Canvas snippets: Difference between revisions

Jump to navigation Jump to search
m
Line 69: Line 69:


# parse the SVG file
# parse the SVG file
# this converts the SVG file into OpenVG instructions
# supported by Canvas
canvas.parsesvg(svg_symbols, svg_path);
canvas.parsesvg(svg_symbols, svg_path);
   
   
# resize the SVG image  
# resize the SVG image  
shuttle_symbol.setScale(0.20);  
shuttle_symbol.setScale(0.20); # 20%


# position the image (this could be done dynamically using a maketimer() callback)
# position the image (this could be done dynamically using a maketimer() callback)

Navigation menu