This commit is contained in:
kin fuyuki 2026-02-22 03:57:10 -03:00
commit 78868f5b52
No known key found for this signature in database
GPG key ID: 0E4E8E519FB71401
13 changed files with 267 additions and 10 deletions

32
engine/src/graph/noise.h Normal file
View file

@ -0,0 +1,32 @@
#pragma once
#include "window.h"
enum NOISETYPE {
CLOUD,
RANDOM,
};
enum DIMENSION {
ONE,TWO,THREE,FOUR
};
class noise {
public:
int freq;
int octave;
int amp;
NOISETYPE type;
DIMENSION dims;
noise(int freq,int octave, int amp, NOISETYPE type, DIMENSION dims):
freq(freq), octave(octave), amp(amp), type(type),dims(dims) {}
/// to explain the image generator
/// \param x int
/// \param y int
/// ^ these here is the position the noise will start rendering
/// \param w
/// \param h
/// these are the image width and height. PLEASE DO NOT GET CONFUSED
Image* gen(short w, short h,int x, int y);
};
Image* cloud(noise* noise,short w, short h,int x, int y);
Image* random(noise* noise, short w, short h,int x, int y);