Difference between revisions of "Backcolor Property"

From Lianjapedia
Jump to: navigation, search
(Created page with 'An object's background color. Read/write. <pre> ob.backcolor = nColor | cColor </pre> ===nColor=== Numeric constant: <code lang="recital"> ob.backcolor = 16711935 </code> Or…')
 
(nColor)
Line 6: Line 6:
  
 
===nColor===
 
===nColor===
Numeric constant:
+
Whole number:
  
 
<code lang="recital">
 
<code lang="recital">
 
ob.backcolor = 16711935
 
ob.backcolor = 16711935
 +
ob.backcolor = -16711935
 
</code>
 
</code>
  
Line 16: Line 17:
 
<code lang="recital">
 
<code lang="recital">
 
ob.backcolor = rgb(255,0,255)
 
ob.backcolor = rgb(255,0,255)
 +
ob.backcolor = rgb(0,255,0)
 
</code>
 
</code>
  

Revision as of 07:56, 7 April 2011

An object's background color. Read/write.

ob.backcolor = nColor | cColor

nColor

Whole number:

ob.backcolor = 16711935
ob.backcolor = -16711935

Or using the rgb() function:

ob.backcolor = rgb(255,0,255)
ob.backcolor = rgb(0,255,0)

cColor

Color constant:

ob.backcolor = "magenta"

HTML style six-digit hexadecimal number for red, green, blue components:

ob.backcolor = "#FF00FF"