Color.to_dict# Color.to_dict() → dict[str, int][source]# Convert to dictionary for JSON serialization.