mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-14 08:07:13 +00:00
12 lines
319 B
C++
12 lines
319 B
C++
#include "Synth.h"
|
|
|
|
std::vector<double> Synth::create(int width, int height) {
|
|
std::vector<double> result = std::vector<double>(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;
|
|
}
|