public void RenderCircle(RoBitmap bitmap, PerlinOptions options, int radius) { var data = PerlinTexture.FillCircle(radius, OffsetX, OffsetY, options); for (int x = 0; x < data.Length; x++) { for (int y = 0; y < data[x].Length; y++) { bitmap.SetPixel(x, y, data[x][y]); } } OffsetX += step * radius; OffsetY += step * radius; }
public void RenderSquare(RoBitmap bitmap, PerlinOptions options, int w, int h) { var data = PerlinTexture.FillRectangle(w, h, OffsetX, OffsetY, options); for (int x = 0; x < data.Length; x++) { for (int y = 0; y < data[x].Length; y++) { bitmap.SetPixel(x, y, data[x][y]); } } OffsetX += step * w; OffsetY += step * h; }