Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SeleniumHQ/selenium
/ asHex
Method
asHex
java/src/org/openqa/selenium/support/Color.java:86–88 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
84
}
85
86
public
String asHex() {
87
return
String.format(
"#%02x%02x%02x"
, red, green, blue);
88
}
89
90
/**
91
* @
return
a java.awt.Color
class
instance
Callers
2
hexToHex
Method · 0.45
rgbToHex
Method · 0.45
Calls
1
format
Method · 0.45
Tested by
2
hexToHex
Method · 0.36
rgbToHex
Method · 0.36