MCPcopy
hub / github.com/KilledByAPixel/LittleJS / box2dColorPointer

Function box2dColorPointer

plugins/box2d.js:2016–2017  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

2014 const debugDraw = new box2d.instance.JSDraw();
2015 const box2dColor = (c)=> new Color(c.get_r(), c.get_g(), c.get_b());
2016 const box2dColorPointer = (c)=>
2017 box2dColor(box2d.instance.wrapPointer(c, box2d.instance.b2Color));
2018 const getDebugColor = (color)=>box2dColorPointer(color).scale(1,.8);
2019 const getPointsList = (vertices, vertexCount)=>
2020 {

Callers 1

getDebugColorFunction · 0.85

Calls 1

box2dColorFunction · 0.85

Tested by

no test coverage detected