| Import line: | Cogl = imports.gi.Cogl; | 
| GIR File: | Cogl-1.0.gir | 
| C documentation: | CoglColor | 
| Struct : | Color | 
| Show / Hide Inherited methods, properties and signals | 
| Properties | Defined By | |
|---|---|---|
| 
			
			 
				alpha : Number 
                   
                     
			 
		  
			 | 
		    Cogl.Color | |
| 
			
			 
				blue : Number 
                   
                     
			 
		  
			 | 
		    Cogl.Color | |
| 
			
			 
				green : Number 
                   
                     
			 
		  
			 | 
		    Cogl.Color | |
| 
			
			 
				padding0 : Number 
                   
                     
			 
		  
			 | 
		    Cogl.Color | |
| 
			
			 
				padding1 : Number 
                   
                     
			 
		  
			 | 
		    Cogl.Color | |
| 
			
			 
				padding2 : Number 
                   
                     
			 
		  
			 | 
		    Cogl.Color | |
| 
			
			 
				red : Number 
                   
                     
			 
		  
			 | 
		    Cogl.Color | |
| Method / Constructor | Defined By | |
|---|---|---|
| 
                
		 
			new  Cogl.Color
				
				 () 
			
				
			
		 
                Create a new Cogl.Color  
		 
		 
                    
			
			
			
				Create a new Cogl.Color
			
			
			
			 
			
			
			 
		    
		     
                                         
                 | 
            ||
| 
                
		 
			copy
				
				 () 
			
				
					 : 
					Cogl.Color
					
				
			
		 
                Creates a copy of color  
		 
		 
		 
                    
			
				Creates a copy of color
		    
				
			
			
			
			
			
			 
			
			
				                     
                
  | 
            Cogl.Color | |
| 
                
		 
			free
				
				 () 
			
				
					 : 
					none
					
				
			
		 
                Frees the resources allocated by cogl_color_new() and cogl_color_copy()  
		 
		 
		 
                    
			
				Frees the resources allocated by cogl_color_new() and cogl_color_copy()
		    
				
			
			
			
			
			
			 
			
			
				                     
                
  | 
            Cogl.Color | |
| 
                
		 
			get_alpha
				
				 () 
			
				
					 : 
					Number
					
				
			
		 
                Retrieves the alpha channel of color as a fixed point value between 0 and %1.0.  
		 
		 
		 
                    
			
				Retrieves the alpha channel of color as a fixed point value between 0 and %1.0.
		    
				
			
			
			
			
			
			 
			
			
				                     
                
  | 
            Cogl.Color | |
| 
                
		 
			get_alpha_byte
				
				 () 
			
				
					 : 
					Number
					
				
			
		 
                Retrieves the alpha channel of color as a byte value between 0 and 255  
		 
		 
		 
                    
			
				Retrieves the alpha channel of color as a byte value between 0 and 255
		    
				
			
			
			
			
			
			 
			
			
				                     
                
  | 
            Cogl.Color | |
| 
                
		 
			get_alpha_float
				
				 () 
			
				
					 : 
					Number
					
				
			
		 
                Retrieves the alpha channel of color as a floating point value between 0.0 and 1.0  
		 
		 
		 
                    
			
				Retrieves the alpha channel of color as a floating point value between 0.0 and 1.0
		    
				
			
			
			
			
			
			 
			
			
				                     
                
  | 
            Cogl.Color | |
| 
                
		 
			get_blue
				
				 () 
			
				
					 : 
					Number
					
				
			
		 
                Retrieves the blue channel of color as a fixed point value between 0 and %1.0.  
		 
		 
		 
                    
			
				Retrieves the blue channel of color as a fixed point value between 0 and %1.0.
		    
				
			
			
			
			
			
			 
			
			
				                     
                
  | 
            Cogl.Color | |
| 
                
		 
			get_blue_byte
				
				 () 
			
				
					 : 
					Number
					
				
			
		 
                Retrieves the blue channel of color as a byte value between 0 and 255  
		 
		 
		 
                    
			
				Retrieves the blue channel of color as a byte value between 0 and 255
		    
				
			
			
			
			
			
			 
			
			
				                     
                
  | 
            Cogl.Color | |
| 
                
		 
			get_blue_float
				
				 () 
			
				
					 : 
					Number
					
				
			
		 
                Retrieves the blue channel of color as a floating point value between 0.0 and 1.0  
		 
		 
		 
                    
			
				Retrieves the blue channel of color as a floating point value between 0.0 and 1.0
		    
				
			
			
			
			
			
			 
			
			
				                     
                
  | 
            Cogl.Color | |
| 
                
		 
			get_green
				
				 () 
			
				
					 : 
					Number
					
				
			
		 
                Retrieves the green channel of color as a fixed point value between 0 and %1.0.  
		 
		 
		 
                    
			
				Retrieves the green channel of color as a fixed point value between 0 and %1.0.
		    
				
			
			
			
			
			
			 
			
			
				                     
                
  | 
            Cogl.Color | |
| 
                
		 
			get_green_byte
				
				 () 
			
				
					 : 
					Number
					
				
			
		 
                Retrieves the green channel of color as a byte value between 0 and 255  
		 
		 
		 
                    
			
				Retrieves the green channel of color as a byte value between 0 and 255
		    
				
			
			
			
			
			
			 
			
			
				                     
                
  | 
            Cogl.Color | |
| 
                
		 
			get_green_float
				
				 () 
			
				
					 : 
					Number
					
				
			
		 
                Retrieves the green channel of color as a floating point value between 0.0 and 1.0  
		 
		 
		 
                    
			
				Retrieves the green channel of color as a floating point value between 0.0 and 1.0
		    
				
			
			
			
			
			
			 
			
			
				                     
                
  | 
            Cogl.Color | |
| 
                
		 
			get_red
				
				 () 
			
				
					 : 
					Number
					
				
			
		 
                Retrieves the red channel of color as a fixed point value between 0 and %1.0.  
		 
		 
		 
                    
			
				Retrieves the red channel of color as a fixed point value between 0 and %1.0.
		    
				
			
			
			
			
			
			 
			
			
				                     
                
  | 
            Cogl.Color | |
| 
                
		 
			get_red_byte
				
				 () 
			
				
					 : 
					Number
					
				
			
		 
                Retrieves the red channel of color as a byte value between 0 and 255  
		 
		 
		 
                    
			
				Retrieves the red channel of color as a byte value between 0 and 255
		    
				
			
			
			
			
			
			 
			
			
				                     
                
  | 
            Cogl.Color | |
| 
                
		 
			get_red_float
				
				 () 
			
				
					 : 
					Number
					
				
			
		 
                Retrieves the red channel of color as a floating point value between 0.0 and 1.0  
		 
		 
		 
                    
			
				Retrieves the red channel of color as a floating point value between 0.0 and 1.0
		    
				
			
			
			
			
			
			 
			
			
				                     
                
  | 
            Cogl.Color | |
| 
                
		 
			premultiply
				
				 () 
			
				
					 : 
					none
					
				
			
		 
                Converts a non-premultiplied color to a pre-multiplied color.  
		 
		 
		 
                    
			
				Converts a non-premultiplied color to a pre-multiplied color. For example, semi-transparent red is (1.0, 0, 0, 0.5) when non-premultiplied and (0.5, 0, 0, 0.5) when premultiplied.
		    
				
			
			
			
			
			
			 
			
			
				                     
                
  | 
            Cogl.Color | |
| Cogl.Color | ||
| Cogl.Color | ||
| None | 
| Class / Namespace | Method / Signal / Properties | 
|---|---|
| 
		
			Cogl
             Method  | 
            
            
 
	   
            
                
		
                 Clears all the auxiliary buffers identified in the buffers mask, and if that includes the color buffer then the specified color is used.  
		 
		 
		 
                 
		     
              
             | 
            
        
        
| 
		
			Cogl
             Method  | 
            
            
 
	   
            
                
		
                 Retrieves the current ambient color for material  
		 
		 
		 
                 
		     
              
             | 
            
        
        
| 
		
			Cogl
             Method  | 
            
            
 
	   
            
                
		
                 Retrieves the current material color.  
		 
		 
		 
                 
		     
              
             | 
            
        
        
| 
		
			Cogl
             Method  | 
            
            
 
	   
            
                
		
                 Retrieves the current diffuse color for material  
		 
		 
		 
                 
		     
              
             | 
            
        
        
| 
		
			Cogl
             Method  | 
            
            
 
	   
            
                
		
                 Retrieves the materials current emission color.  
		 
		 
		 
                 
		     
              
             | 
            
        
        
| 
		
			Cogl
             Method  | 
            
            
 
	   
            
                
		
                 Retrieves the materials current specular color.  
		 
		 
		 
                 
		     
              
             | 
            
        
        
| 
		
			Cogl
             Method  | 
            
            
 
	   
            
                
		
                 Sets the material's ambient color, in the standard OpenGL lighting model.  
		 
		 
		 
                 
		     
              
             | 
            
        
        
| 
		
			Cogl
             Method  | 
            
            
 
	   
            
                
		
                 Conveniently sets the diffuse and ambient color of material at the same time.  
		 
		 
		 
                 
		     
              
             | 
            
        
        
| 
		
			Cogl
             Method  | 
            
            
 
	   
            
                
		
                 When blending is setup to reference a CONSTANT blend factor then blending will depend on the constant set with this function.  
		 
		 
		 
                 
		     
              
             | 
            
        
        
| 
		
			Cogl
             Method  | 
            
            
 
	   
            
                
		
                 Sets the basic color of the material, used when no lighting is enabled.  
		 
		 
		 
                 
		     
              
             | 
            
        
        
| 
		
			Cogl
             Method  | 
            
            
 
	   
            
                
		
                 Sets the material's diffuse color, in the standard OpenGL lighting model.  
		 
		 
		 
                 
		     
              
             | 
            
        
        
| 
		
			Cogl
             Method  | 
            
            
 
	   
            
                
		
                 Sets the material's emissive color, in the standard OpenGL lighting model.  
		 
		 
		 
                 
		     
              
             | 
            
        
        
| 
		
			Cogl
             Method  | 
            
            
 
	   
            
                
		 
			Cogl.material_set_layer_combine_constant
				
				 (void* material, Number layer_index, Color constant) 
			
				
					 : 
					none
					
				
			
		 
                When you are using the 'CONSTANT' color source in a layer combine description then you can use this function to define its value.  
		 
		 
		 
                 
		     
              
             | 
            
        
        
| 
		
			Cogl
             Method  | 
            
            
 
	   
            
                
		
                 Sets the material's specular color, in the standard OpenGL lighting model.  
		 
		 
		 
                 
		     
              
             | 
            
        
        
| 
		
			Cogl
             Method  | 
            
            
 
	   
            
                
		
                 Enables fogging.  
		 
		 
		 
                 
		     
              
             | 
            
        
        
| 
		
			Cogl
             Method  | 
            
            
 
	   
            
                
		 
			Cogl.set_source_color
				
				 (Color color) 
			
				
					 : 
					none
					
				
			
		 
                This is a convenience function for creating a solid fill source material from the given color.  
		 
		 
		 
                 
		     
              
             |