Difference between revisions of "VS:GetFillBack"

From Vectorworks Developer
Jump to: navigation, search
m (1 revision)
m
 
Line 52: Line 52:
 
==== Python ====
 
==== Python ====
 
<code lang="py">
 
<code lang="py">
redValue,greenValue,blueValue = vs.GetFillBack(vs.FSActLayer())
+
red_value, green_value, blue_value = vs.GetFillBack(vs.FSActLayer())
 
</code>
 
</code>
 
</sample>
 
</sample>
  
 
-----------------------------------------------------------------------------------------------------------
 
-----------------------------------------------------------------------------------------------------------
 +
 
<seeAlso>
 
<seeAlso>
VS Functions:
+
VS Functions: [[VS:RGBToColorIndex]] | [[VS:ColorIndexToRGB]] | [[VS:GetFillFore]] | [[VS:GetPenFore]] | [[VS:GetPenBack]]
[[VS:RGBToColorIndex]]  
+
| [[VS:ColorIndexToRGB]]  
+
 
</seeAlso>
 
</seeAlso>
  

Latest revision as of 06:08, 14 October 2021

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix


Description

Procedure GetFillBack returns the fill background color of the referenced object. RGB values are in the range of 0~65535.
PROCEDURE GetFillBack(
h  :HANDLE;
VAR red  :LONGINT;
VAR green  :LONGINT;
VAR blue  :LONGINT);
def vs.GetFillBack(h):
    return (red, green, blue)

Parameters

h HANDLE Handle to object.
red LONGINT Returns RGB color component value.
green LONGINT Returns RGB color component value.
blue LONGINT Returns RGB color component value.

Example

VectorScript

GetFillBack(handleToObject,redValue,greenValue,blueValue);

Python

red_value, green_value, blue_value = vs.GetFillBack(vs.FSActLayer())

Version

Availability: from MiniCAD6.0

See Also

VS Functions: VS:RGBToColorIndex | VS:ColorIndexToRGB | VS:GetFillFore | VS:GetPenFore | VS:GetPenBack
VS Functions: [[VS:RGBToColorIndex]] | [[VS:ColorIndexToRGB]] | [[VS:GetFillFore]] | [[VS:GetPenFore]] | [[VS:GetPenBack]]
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox