idk but i'm trying to tell you to make a bigger height map using noise and set a sea level so some areas would be lower than the sea level and therefore be in the ocean
and the ocean floor is generated the way same land is
and you asked for a diagram and i attempted to make a diagram showing this
how else am i supposed to show you the concept of using noise to generate a heightmap????????????? do you want the code i used to make those visuals here
const noiseScale = 0.005;
const noiseAmplitude = 0.4;
const oceanHeight = 0.2;
function setup() {
createCanvas(800, 400);
noiseDetail(10, 0);
noLoop();
}
function draw() {
background(220);
for (let x = 0; x < width; x++) {
let noiseVal = noise(x * noiseScale) * noiseAmplitude;
let y = noiseVal * -height + height;
if (noiseVal < oceanHeight) {
stroke(0, 0, 255);
line(x, y, x, height * (1 - oceanHeight));
}
if (noiseVal < oceanHeight + 0.01) {
stroke(255, 200, 0);
} else {
stroke(20, 200, 50);
}
line(x, y, x, height);
}
}