MCPcopy Create free account
hub / github.com/SimHacker/micropolis / n_perlin

Method n_perlin

MicropolisCore/src/CellEngine/src/cellengine.cpp:4840–4871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4838
4839
4840void CellEngine::n_perlin()
4841{
4842 unsigned char *front = frontMem;
4843 long yy;
4844 long u = pointax;
4845 long v = pointay;
4846 long du = pointbx * frob;
4847 long dv = pointby * frob;
4848 long ddu = pointcx;
4849 long ddv = pointcy;
4850
4851 for (yy = 0;
4852 yy < height;
4853 front += screenRowBytes,
4854 yy++) {
4855
4856 C_Noise(
4857 u,
4858 v,
4859 du,
4860 dv,
4861 ddu,
4862 ddv,
4863 front,
4864 width);
4865
4866 // Step to the next scan line, by adding du,dv vector rotated 90 degrees to u,v
4867
4868 u += dv;
4869 v -= du;
4870 } // for yy
4871}
4872
4873
4874inline unsigned char MARG_RULE_DIFFUSION(

Callers

nothing calls this directly

Calls 1

C_NoiseFunction · 0.85

Tested by

no test coverage detected