Coder Social home page Coder Social logo

mandelbrot's Introduction

Mandelbrot Generator

C CI
This is a mandelbrot generator written in c using libpng with zlib to create png images.

Compiling

This program has libpng and zlib as dependencies. Here is a table of dependency names on different systems: Remember that pkg-config, make and a c99 compatible compiler (gcc, tcc...) are required to compile.

Distro libpng zlib
Ubuntu 20.04 libpng-dev zlib1g-dev
Void Linux libpng-devel zlib-devel
Fedora libpng-devel zlib-devel

After installing all dependencies, you just run make.

Installing and uninstalling

Remember to have the right permissions, by using sudo or running as root. Install: make install Uninstall: make uninstall

By default it installs the binary to /usr/local/bin, you can change this under Configuration.

Usage

To get the usage run the program without any parameters. To get the version and license run the program with -v.

Configuration

config.mk options (makefile variables):

Name Default value Description
VERBOSE 1 This changes the verboseness of the program.
VERSION This changes the version printed when running the program. Any string is acceptable.
PKG_CONFIG pkg-config This changes the binary that is used for pkg-config.
PREFIX /usr/local This changes where the binary is installed to. ( /usr/local/bin )
USE_PTHREAD depends on arch This forces the compiler to use or not use pthreads.

Compiler options (enviroment variables):

Name Default value Description
CC Depends on make You can set this to force a specific compiler.
CPPFLAGS Empty C preprocessor flags
CFLAGS Depends on make C compiler flags
LDFLAGS Empty Linker flags

Examples

1920x1080, 400 zoom, 4000 iterations:
image of mandelbrot

License

BSD-2-Clause

mandelbrot's People

Stargazers

 avatar

Watchers

 avatar  avatar

mandelbrot's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.