G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing
Banner Institutions GREYC CNRS ENSICAEN UNICAEN

A Full-Featured Open-Source Framework for Image Processing



Latest stable version: 4.0.4 (2026/08/19)

Reference
Table of Contents  ▸  List of Commands  ▸  Reptorian's Commands  ▸  rep_popcorn_fractal◀  rep_popcorn_fractal_transformative    |    rep_x_graphical_tiling  ▶

rep_popcorn_fractal

Arguments:

  • _points>0,_density>0,_H,_K,_zoom,_rotation_angle,_origin_x,_origin_y,_mode,_f1={ 0=sin | 1=cos | 2=tan | 3=atan},...

Description:

Generates Pickover Popcorn Fractal. Code was adapted from Paul Bourke's c code, and extended for more possibilities. Fractal is attributed to Clifford Pickover.


_points defines the maximum number of points to be added on image based on pixel location.
_density defines the frequency of points to be added along row and height of image. A value of one implies n points to be added per pixel.
_H is the function multiplier used to subtract from the new found values from each iteration.
_K is the inner multiplier for the inside function. See popcorn_x(a,b), and popcorn_y(a,b) embedded within the code of rep_popcorn_fractal for more information.
_zoom defines the magnification of image. A negative value will "shrink" the structure of generated fractal.
_rotation_angle defines the function angle of fractal.
_origin_x defines the position of fractal. Center of image row will be treated as zero, and the ranges for image row are treated as -1,1.
_origin_y defines the position of fractal. Center of image column will be treated as zero, and the ranges for image column are treated as -1,1.
_mode defines whether to use 4 trigonometric functions or 6 trigonometric functions. Each halves of functions are used on 2 functions used by different axis.
_fn defines individual function used for the popcorn fractal.

Author: Reptorian.

Default values:

_points=50,density=1,H=.05,_K=3,zoom=1,_rotation_angle=0,_origin_x=0,_origin_y=0,_mode=0,...

If _mode=0: ... = _f1=_f3=0,_f2=_f4=2
If _mode=1: ... = _f1=_f4=0,_f2=_f5=1,_f3=_f6=2

G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing

G'MIC is an open-source software distributed under the CeCILL free software licenses (LGPL-like and/or
GPL-compatible). Copyrights (C) Since July 2008, David Tschumperlé - GREYC UMR CNRS 6072, Image Team.