Skip to content

Clojure2D/clojure2d-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Examples for Clojure2D

Examples for Clojure2d library

How to run?

Treat them as scripts.

In Emacs/Cider: C-c C-k

List of examples

  • ex00 - Hello World! - basic script
  • ex01 - display window and process basic events (key and mouse)
  • ex02 - simulate Processing draw() function
  • ex03 - simple generative example
  • ex04 - noise functions visualization
  • ex05 - particle drawing
  • ex06 - noise generative examples
  • ex07 - more noise
  • ex08 - folds code (http://folds2d.tumblr.com/)
  • ex09 - curvature from noise (https://generateme.wordpress.com/2016/05/04/curvature-from-noise/)
  • ex10 - second variant of curvature
  • ex11 - pixel filters and image blending (composing)
  • ex12 - 3 overlays
  • ex13 - image segmentation example
  • ex14 - metaballs animation (https://gist.github.com/yogthos/3411106)
  • ex15 - colorspace converters + equalize histogram
  • ex16 - signal processing, sonification examples
  • ex17 - generative grids
  • ex18 - wave generator visualizations
  • ex19 - glitch filters: slitscan, channels shift, mirror image
  • ex20 - color reduction examples
  • ex21 - Pickover's popcorns
  • ex22 - ray-marching 3d example
  • ex23 - ray-marching 3d example (using SDF ray marching functions from extra/raymarching namespace)
  • ex24 - triangle stripe
  • ex25 - Gaussian Free Field
  • ex26 - FreeArt-Source live coding result (http://subsite.hr/2017/03/performans-silent-coding-u-okviru-izlozbe-free_art_-_source/)
  • ex27 - color palette generator
  • ex28 - double pendulum (with https://github.com/littleredcomputer/sicmutils/blob/master/src/sicmutils/examples/double_pendulum.clj)
  • ex29 - 2d chaotic maps
  • ex30 - random or low discrepancy sequences
  • ex31 - wavy lines
  • ex32 - harmonograms on noise (accumulation bins rendering)
  • ex33 - interpolations / easings
  • ex34 - ducks and kalisets explorer
  • ex35 - mandelbrot and julia explorer
  • ex36 - spirograph
  • ex37 - Fractal Bestiary explorer
  • ex38 - oldschool demescene effect: xor circles
  • ex39 - oldschool demoscene effect: tunnel
  • ex40 - oldschool demoscene effect: fire
  • ex41 - folds on lines
  • ex42 - folds on strings
  • ex43 - noise forms
  • ex44 - rosettes / diatoms
  • ex45 - scalar fields from vector fields
  • ex46 - distributions
  • ex47 - nebula (https://generateme.wordpress.com/2018/10/24/smooth-rendering-log-density-mapping/)
  • ex48 - visualization of reconstruction filters used in log density renderer
  • ex49 - archimedian spiral with an oscillating radius by @jakeashdown
  • ex50 - grid visualization
  • ex51 - image on grid
  • ex52 - Machine Learning algorithms used to glitch image ML Classification removed from fastmath
  • ex53 - Spores simulation (https://www.youtube.com/watch?v=makaJpLvbow)
  • ex54 - Random walk
  • ex55 - Composing
  • ex56 - Splats
  • ex57 - Flocking by @adicirstei
  • ex58 - Circle Inversion art
  • ex59 - Plasmas
  • ex60 - Metal sheets
  • ex61 - Horizontals
  • ex62 - Eigenvalues
  • ex63 - Particle life
  • ex64 - Particle lenia
  • ex65 - Reaction-Diffusion
  • ex66 - Flower mandala by @dumrat22
  • ex67 - Elementary Cellular Automaton
  • ex68 - Langton's Ant
  • ex69 - Turmites
  • ex70 - Bitfields, code by georgemsavva
  • NOC - Nature of Code Clojure2d version. Most interesting:
    • ch02/attraction-many-2-7.clj
    • ch02/fluidresistance-2-5.clj
    • ch02/forces-mutual-attraction-boundaries.clj
    • ch03/excercise-cannon-3-2.clj
    • ch03/exercise-additive-wave-3-9.clj
    • ch04/particlesystemsmoke-4-8.clj
    • ch06/flocking-6-9.clj
    • ch06/flowfield-6-4.clj
    • ch07/gameoflifesimple-7-2.clj
    • ch07/wolframca-figures-7-1.clj
    • ch08/treestochastic-8-7.clj
    • ch08/lsystem-8-9.clj
    • ch08/treestochasticnoise-8-10
  • quil - Quil examples ported to Clojure2d
  • GG - Generative Design examples ported to Clojure2d
  • funprogramming - funprogramming examples from creative coding tutorials by Abe Pazos
  • Ray Tracing in One Weekend - version 3
  • Ray Tracing, version 4 (book1-review branch)
    • In One Weekend (done)
    • The Next Week (done)
    • The Rest Of Your Life (WIP)
  • Games
    • The King (port of the game made for PICO-8)

Other examples

How to contribute

If you prepared new script and want to share - generate pull request or send code to: generateme.blog@gmail.com

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •