From 06627fad2017870a062fb1edb9580d197195cbc9 Mon Sep 17 00:00:00 2001 From: mrawlingst Date: Fri, 8 Sep 2017 09:24:16 -0400 Subject: Update ColorRect class ref documentation --- doc/base/classes.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'doc/base') diff --git a/doc/base/classes.xml b/doc/base/classes.xml index a097470306..7776bb1ce5 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -12572,6 +12572,12 @@ + Set new color to ColorRect. + + [codeblock] + var cr = get_node("colorrect_node") + cr.set_frame_color(Color(1, 0, 0, 1)) # Set color rect node to red + [/codeblock] @@ -12619,14 +12625,21 @@ + Colored rect for canvas. + An object that is represented on the canvas as a rect with color. [Color] is used to set or get color info for the rect. + Return the color in RGBA format. + [codeblock] + var cr = get_node("colorrect_node") + var c = cr.get_frame_color() # Default color is white + [/codeblock] @@ -12635,6 +12648,11 @@ + Set new color to ColorRect. + [codeblock] + var cr = get_node("colorrect_node") + cr.set_frame_color(Color(1, 0, 0, 1)) # Set color rect node to red + [/codeblock] -- cgit v1.2.3