MCPcopy Index your code
hub / github.com/jimp-dev/jimp / intToRGBA

Function intToRGBA

plugins/plugin-hash/src/phash.ts:141–151  ·  view source on GitHub ↗

Convert a 32-bit integer color value to an RGBA object.

(i: number)

Source from the content-addressed store, hash-verified

139 Convert a 32-bit integer color value to an RGBA object.
140 */
141function intToRGBA(i: number) {
142 const a = i & 0xff;
143 i >>>= 8;
144 const b = i & 0xff;
145 i >>>= 8;
146 const g = i & 0xff;
147 i >>>= 8;
148 const r = i & 0xff;
149
150 return { r, g, b, a };
151}
152
153const c: number[] = [];
154

Callers 1

getHashMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…