Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Acode-Foundation/Acode
/ constructor
Method
constructor
src/utils/color/rgb.js:7–12 ·
view source on GitHub ↗
(r, g, b, a = 1)
Source
from the content-addressed store, hash-verified
5
a = 1;
6
7
constructor(r, g, b, a = 1) {
8
this.r = r;
9
this.g = g;
10
this.b = b;
11
this.a = a;
12
}
13
14
/**
15
* Get the color as a string
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected