팩토리 » Api
  
getcolorcontrastratio
  
Description
  
Parameters
  
    
      | Parameters | 
      Type | 
      Description | 
    
  
  
        
    
        | startRGB | 
        Array | 
 	시작 색상 RGB 배열 또는 xFrame 색상값 | 
      
    
    
        | endRGB | 
        Array | 
 	종료 색상 RGB 배열 또는 xFrame 색상값 | 
      
  
  
Return Value
  
    
      | Type | 
      Description | 
    
  
  
    
      | float | 
      명도 비율 | 
    
  
Example
function btn_on_mouseup() 
{
	factory.consoleprint("ratio by rgb = " + 
		factory.getcolorcontrastratio([66, 118, 69], [223, 240, 216]));
	factory.consoleprint("ratio by color = " + 
		factory.getcolorcontrastratio(fld.getforecolor(), fld.getbackcolor()));
}
  
Viewer Ver.
23.12.11.1
  
Update Date
 20231211