mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-26 20:53:36 +00:00
13 lines
330 B
C++
13 lines
330 B
C++
#include "../../Platform/stdafx.h"
|
|
#include "Synth.h"
|
|
|
|
doubleArray Synth::create(int width, int height) {
|
|
doubleArray result = doubleArray(width * height);
|
|
for (int y = 0; y < height; y++) {
|
|
for (int x = 0; x < width; x++) {
|
|
result[x + y * width] = getValue(x, y);
|
|
}
|
|
}
|
|
return result;
|
|
}
|