Skip to content

2G-Afroz/perlin-noise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perlin Noise Generator

License GitHub stars

This project implements Perlin noise in C++ and visualizes it using the Raylib library. Perlin noise is a mathematical technique for generating procedural textures with smooth variations, commonly used in creating realistic-looking landscapes, clouds, and other natural phenomena in computer graphics.

Table of Contents

This project demonstrates

  • Perlin noise generation: The code implements the Perlin noise algorithm, calculating noise values based on input coordinates.
  • Raylib integration: The generated noise values are used to create a visual representation using Raylib's drawing and windowing functionalities.

Screenshot

  • 1D Perlin Noise 1D Perlin Noise!

  • 2D Perlin Noise 2D Perlin Noise!

Getting Started

Prerequisites

  • C++ compiler: Ensure you have a C++ compiler installed (e.g., GCC, Clang).
  • Raylib: Download and install Raylib from https://github.com/raysan5/raylib. Follow the installation instructions for your platform.

Installation

  1. Clone the repository:
    git clone https://github.com/2G-Afroz/perlin-noise
  2. Navigate to the project directory:
    cd perlin-noise
  3. Build the project:
    cmake -B builds
  4. Build using your preferred method:
    1. Windows:
       cd builds
       mingw32-make
    2. Linux/macOS:
      	cd builds
      	make

Usage

Run the generated executable (e.g., builds/perlin-noise.exe).

Contributing

Contributions are welcome! Please read CONTRIBUTING.md for details on how to contribute to this project.

License

Distributed under the MIT License. See LICENSE for more information.

About

A C++ library to generate Perlin Noise in 1D, 2D and 3D.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors