MCPcopy Index your code
hub / github.com/plotly/plotly.js / flipPixels

Function flipPixels

src/plots/gl3d/scene.js:1059–1071  ·  view source on GitHub ↗
(pixels, w, h)

Source from the content-addressed store, hash-verified

1057};
1058
1059function flipPixels(pixels, w, h) {
1060 for(var i = 0, q = h - 1; i < q; ++i, --q) {
1061 for(var j = 0; j < w; ++j) {
1062 for(var k = 0; k < 4; ++k) {
1063 var a = 4 * (w * i + j) + k;
1064 var b = 4 * (w * q + j) + k;
1065 var tmp = pixels[a];
1066 pixels[a] = pixels[b];
1067 pixels[b] = tmp;
1068 }
1069 }
1070 }
1071}
1072
1073function correctRGB(pixels, w, h) {
1074 for(var i = 0; i < h; ++i) {

Callers 1

scene.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…