SpectaclesCustomImagePaths

From 2009.igem.org

Revision as of 23:30, 21 October 2009 by Legor17 (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Back to Spectacles

--------------------------------------------------------------------------
2.5. Image bindings
--------------------------------------------------------------------------
An image binding associates an image with a particular part. An image 
binding for a part must be made before any instances of the part are 
declared. An image binding for an instance of a part or device can be made 
after that instance is declared with the same syntax, but replacing part 
name with the instance name.

Grammar:
	Image(<part name>, <image path>);
		<part name>: name of a predefined part
		<image path>: absolute path of the image enclosed in double quotes

Example:
	Image(Promoter, "C:\My Images\promoter.jpg");
	Image(RBS, "C:\My Images\rbs.jpg");

Back to Spectacles