colors — Wrapper class for colors¶
Color reference¶
Constructor:
-
class
colors.Color(r=0.0, g=0.0, b=0.0, a=1.0)¶ A
Colorrepresents a color in RGBA format. Color is a property attribute of anodes.Nodeinstance and all its subclasses e.g.physics.BodyNode,physics.BodyNode,fonts.TextNodeetc.Giving
nodes.Nodea color tints this node’sgeometry.Shapein that color. In case of text nodes it sets the color of the text.Parameters r, g, b and a are red, green, blue and alpha. They take values between 0 and 1.
Instance properties (read only):
-
Color.r¶ Returns red value
-
Color.g¶ Returns green value
-
Color.b¶ Returns blue value
-
Color.a¶ Returns blue value
Class methods: