ColorScaleAttrib

class ColorScaleAttrib

Bases: RenderAttrib

Applies a scale to colors in the scene graph and on vertices.

Inheritance diagram

digraph inheritance0fa06e0fd7 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "ColorScaleAttrib" [URL="acron.core.ColorScaleAttrib.html#acron.core.ColorScaleAttrib",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "RenderAttrib" -> "ColorScaleAttrib" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "RenderAttrib" [URL="acron.core.RenderAttrib.html#acron.core.RenderAttrib",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritableReferenceCount" -> "RenderAttrib" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedWritable" [URL="acron.core.TypedWritable.html#acron.core.TypedWritable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedWritable" [arrowsize=0.75,style=""]; "TypedWritableReferenceCount" [URL="acron.core.TypedWritableReferenceCount.html#acron.core.TypedWritableReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritable" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; }
static ColorScaleAttrib.get_class_slot()
static ColorScaleAttrib.get_class_type()
ColorScaleAttrib.get_scale()

Returns the scale to be applied to colors.

ColorScaleAttrib.has_alpha_scale()

Returns true if the ColorScaleAttrib has a non-identity scale in the alpha component (ignoring RGB), or false otherwise.

ColorScaleAttrib.has_rgb_scale()

Returns true if the ColorScaleAttrib has a non-identity scale in the RGB components (ignoring alpha), or false otherwise.

ColorScaleAttrib.has_scale()

Returns true if the ColorScaleAttrib has a non-identity scale, false otherwise (in which case it might be an off attrib or an identity attrib).

ColorScaleAttrib.is_identity()

Returns true if the ColorScaleAttrib is an identity attrib, false if it is either an off attrib or it has a scale.

ColorScaleAttrib.is_off()

Returns true if the ColorScaleAttrib will ignore any color scales inherited from above, false otherwise. This is not the same thing as !has_scale(); a ColorScaleAttrib may have the “off” flag set and also have another scale specified.

static ColorScaleAttrib.make()

Constructs a new ColorScaleAttrib object that indicates geometry should be scaled by the indicated factor.

static ColorScaleAttrib.make_default()

Returns a RenderAttrib that corresponds to whatever the standard default properties for render attributes of this type ought to be.

static ColorScaleAttrib.make_identity()

Constructs an identity scale attrib.

static ColorScaleAttrib.make_off()

Constructs a new ColorScaleAttrib object that ignores any ColorScaleAttrib inherited from above. You may also specify an additional color scale to apply to geometry below (using set_scale()).

ColorScaleAttrib.set_scale()

Returns a new ColorScaleAttrib, just like this one, but with the scale changed to the indicated value.