Oolite 1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
OOColor.m File Reference
import "OOColor.h"
import "OOCollectionExtractors.h"
import "OOMaths.h"
+ Include dependency graph for OOColor.m:

Go to the source code of this file.

Functions

NSString * OORGBAComponentsDescription (OORGBAComponents components)
 
NSString * OOHSBAComponentsDescription (OOHSBAComponents components)
 

Function Documentation

◆ OOHSBAComponentsDescription()

NSString * OOHSBAComponentsDescription ( OOHSBAComponents components)

Definition at line 544 of file OOColor.m.

545{
546 return [NSString stringWithFormat:@"{%i, %.3g, %.3g, %.3g}", (int)components.h, components.s, components.b, components.a];
547}
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque

◆ OORGBAComponentsDescription()

NSString * OORGBAComponentsDescription ( OORGBAComponents components)

Definition at line 538 of file OOColor.m.

539{
540 return [NSString stringWithFormat:@"{%.3g, %.3g, %.3g, %.3g}", components.r, components.g, components.b, components.a];
541}