Module:ProtoFlux Type Color/doc

From Resonite Wiki

This is the documentation page for Module:ProtoFlux Type Color

Code for finding the colors of C# types, translated from the Resonite source code.

Invokable Functions
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.

Other Functions
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

sbyte short int long

Unsigned

byte ushort uint ulong

Decimal

float double decimal

String

String

Non-Values

A

Animation AssetLoadState AudioDistanceSpace AudioOutput AudioRolloffMode AudioTypeGroup

B

bobool3ol BodyNode BoundingBox BoundingBox2D

C

Camera CharacterController ColorProfile Component ComponentHandling CultureInfo CurvePreset

D

DateTimeKind DayOfWeek

E

EventState

F

FingerSegmentType FingerType

G

Grabber Guid

H

half

I

IAssetProvider IAssetProvider`1 IAvatarAnchor ICollider IComponent IField IField`1 IFingerPoseSource IFocusable IFormatProvider IGrabbable ILocomotionModule IPlayable ISyncRef ISyncRef`1 ITool ITouchable IValue IValue`1 IVariable`2 IWorldElement IWorldLink

J

JoinRequestHandle

K
L

LocaleResource

M
N

Nullable<T> Nullable`1

O

Object

P

Platform ProtoFluxNode

Q
R

RawDataTool Rect RefID ReflectionProbe

S

Slot SpriteProvider StaticAudioClip StaticMesh StaticTexture2D StaticTexture3D StringComparison SyncPlayback

T

TangentPointFloat Texture2D Texture3D TextureFormat TextureWrapMode TouchEventType TouchType

U

User UserRef UserRoot UsersAssetLoadProgress`1

V
W

WebsocketClient WorldRelation WrapMode

XYZ