Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bendudson/EuraliOS
/ new
Method
new
kernel/src/vga_buffer.rs:29–31 ·
view source on GitHub ↗
(foreground: Color, background: Color)
Source
from the content-addressed store, hash-verified
27
28
impl ColorCode {
29
fn new(foreground: Color, background: Color) -> ColorCode {
30
ColorCode((background as u8) << 4 | (foreground as u8))
31
}
32
}
33
34
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
Callers
nothing calls this directly
Calls
1
ColorCode
Class · 0.85
Tested by
no test coverage detected