MCPcopy
hub / github.com/txstc55/ugly-avatar / randomFromInterval

Function randomFromInterval

src/utils/mouth_shape.js:1–4  ·  view source on GitHub ↗
(min, max)

Source from the content-addressed store, hash-verified

1function randomFromInterval(min, max) {
2 // min and max included
3 return Math.random() * (max - min) + min;
4}
5function cubicBezier(P0, P1, P2, P3, t) {
6 var x = (1 - t) ** 3 * P0[0] + 3 * (1 - t) ** 2 * t * P1[0] + 3 * (1 - t) * t ** 2 * P2[0] + t ** 3 * P3[0];
7 var y = (1 - t) ** 3 * P0[1] + 3 * (1 - t) ** 2 * t * P1[1] + 3 * (1 - t) * t ** 2 * P2[1] + t ** 3 * P3[1];

Callers 4

getEggShapePointsFunction · 0.70
generateMouthShape0Function · 0.70
generateMouthShape1Function · 0.70
generateMouthShape2Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected