MCPcopy Create free account
hub / github.com/SpartanJ/eepp / get_pixel

Function get_pixel

src/examples/physics/physics.cpp:109–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 -8, 31, -128, 7, -128, 0, 0 };
108
109int get_pixel( int x, int y ) {
110 return ( image_bitmap[( x >> 3 ) + y * image_row_length] >> ( ~x & 0x7 ) ) & 1;
111}
112
113Shape* make_ball( cpFloat x, cpFloat y ) {
114 Body* body = Body::New( 1.0, INFINITY );

Callers 1

demo1CreateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected