Skip to content

Latest commit

 

History

History
71 lines (59 loc) · 1.9 KB

File metadata and controls

71 lines (59 loc) · 1.9 KB

FFillBack

Description

Procedure FFillBack returns the current fill background color. RGB values are in the range of 0~65535.

PROCEDURE FFillBack(
				VAR red   : LONGINT;
				VAR green : LONGINT;
				VAR blue  : LONGINT);
def vs.FFillBack():
    return (red, green, blue)

Parameters

Name Type Description
red LONGINT Returns RGB color component value.
green LONGINT Returns RGB color component value.
blue LONGINT Returns RGB color component value.

Examples

VectorScript

FFillBack(redValue,greenValue,blueValue);

Python

redValue,greenValue,blueValue = vs.FFillBack()
BEGIN
	FFillFore (R, G, B);
	SetFillFore (objectH, R, G, B);
	FFillBack (R, G, B);
	SetFillBack (objectH, R, G, B);
END;

structCompsNeedUpdate	:= ((structMaterialIDNum = updatedMaterialID)	& (textureByMaterial = false)) | ((structMaterialIDNum = 0) & materialDeleted);
{AlrtDialog(concat(' Inside HandleMaterialChange(), textureNeedsUpdate = ', textureNeedsUpdate, '  ,  archMaterialIDNum = ', archMaterialIDNum, '  , structMaterialIDNum = ', structMaterialIDNum,
												'  , updatedMaterialID =', updatedMaterialID, ' , archCompsNeedUpdate = ', archCompsNeedUpdate, ' , structCompsNeedUpdate = ', structCompsNeedUpdate)); }
FFillFore(redValue,		greenValue,		blueValue);
FFillBack(redValueBack, greenValueBack, blueValueBack);

begin
	FFillBack(redValue,greenValue,blueValue);
	SetFillBack(LNewObj, redValue,greenValue,blueValue);
end;
import vs

# Procedure FFillBack returns the current fill background color.
red, green, blue = vs.FFillBack()
vs.Message('FFillBack returned: ' + str((red, green, blue)))

See Also

VS Functions: RGBToColorIndex | ColorIndexToRGB

Version

Availability: from All Versions

Category