This is the documentation page for Module:ProtoFlux Type Color
Code for finding the colors of C# types, translated from the Resonite source code.
Function | Purpose | Example |
---|---|---|
get_impulse_color_css |
Gets the color of an impulse | {{#invoke:ProtoFlux_Type_Color|get_impulse_color_css|Continuation}}
|
get_type_color_css |
Gets the color of a data type | {{#invoke:ProtoFlux_Type_Color|get_type_color_css|User}}
|
get_color_css |
First attempts to interpret the type as an impulse | {{#invoke:ProtoFlux_Type_Color|get_color_css|int}}
|
The following functions are exported, but not invokable by Media Wiki.
Function | Purpose | Example |
---|---|---|
get_impulse_color |
Gets the color of an impulse | get_impulse_color("Continuation")
|
get_type_color |
Gets the color of a data type | get_type_color("User")
|
color_from_crc |
Derives a color from the given CRC32 checksum | color_from_crc(0x9CD97842)
|
How exactly these invokations may be used can be seen by inspecting the source of this wiki and related templates.
Examples
Continuation
Call
AsyncCall
SyncResumption
AsyncResumption
Types
Values and String
Signed |
|
Unsigned |
|
Decimal |
|
String |
|
Non-Values
A |
|
B |
|
C |
|
D |
|
E |
|
F |
|
G |
|
H |
|
I |
|
J |
|
K | |
L |
|
M | |
N |
|
O |
|
P |
|
Q | |
R |
|
S |
|
T |
|
U |
|
V | |
W |
|
XYZ |