naev 0.12.5
colours_c_gen.Colour Class Reference

Public Member Functions

 __init__ (self, name, r, g, b, a=1.0)
 write_header (self, f)
 write_source (self, f)
 __lt__ (self, other)

Data Fields

 name = name
 r = gammaToLinear( r )
 g = gammaToLinear( g )
 b = gammaToLinear( b )
 a = a

Detailed Description

Definition at line 9 of file colours_c_gen.py.

Constructor & Destructor Documentation

◆ __init__()

colours_c_gen.Colour.__init__ ( self,
name,
r,
g,
b,
a = 1.0 )

Definition at line 10 of file colours_c_gen.py.

Member Function Documentation

◆ __lt__()

colours_c_gen.Colour.__lt__ ( self,
other )

Definition at line 25 of file colours_c_gen.py.

◆ write_header()

colours_c_gen.Colour.write_header ( self,
f )

Definition at line 19 of file colours_c_gen.py.

◆ write_source()

colours_c_gen.Colour.write_source ( self,
f )

Definition at line 22 of file colours_c_gen.py.

Field Documentation

◆ a

colours_c_gen.Colour.a = a

Definition at line 17 of file colours_c_gen.py.

◆ b

colours_c_gen.Colour.b = gammaToLinear( b )

Definition at line 16 of file colours_c_gen.py.

◆ g

colours_c_gen.Colour.g = gammaToLinear( g )

Definition at line 15 of file colours_c_gen.py.

◆ name

colours_c_gen.Colour.name = name

Definition at line 13 of file colours_c_gen.py.

◆ r

colours_c_gen.Colour.r = gammaToLinear( r )

Definition at line 14 of file colours_c_gen.py.


The documentation for this class was generated from the following file: