mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-30 21:21:10 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			334 B
		
	
	
	
		
			GDScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			334 B
		
	
	
	
		
			GDScript
		
	
	
	
	
	
| const const_color: Color = 'red'
 | |
| 
 | |
| func func_color(arg_color: Color = 'blue') -> bool:
 | |
| 	return arg_color == Color.BLUE
 | |
| 
 | |
| func test():
 | |
| 	Utils.check(const_color == Color.RED)
 | |
| 
 | |
| 	Utils.check(func_color() == true)
 | |
| 	Utils.check(func_color('blue') == true)
 | |
| 
 | |
| 	var var_color: Color = 'green'
 | |
| 	Utils.check(var_color == Color.GREEN)
 | |
| 
 | |
| 	print('ok')
 | 
