summaryrefslogtreecommitdiff
path: root/pluginchooser/src/ofxAChaosLib/src/AChaosClifford.h
diff options
context:
space:
mode:
Diffstat (limited to 'pluginchooser/src/ofxAChaosLib/src/AChaosClifford.h')
-rwxr-xr-xpluginchooser/src/ofxAChaosLib/src/AChaosClifford.h66
1 files changed, 0 insertions, 66 deletions
diff --git a/pluginchooser/src/ofxAChaosLib/src/AChaosClifford.h b/pluginchooser/src/ofxAChaosLib/src/AChaosClifford.h
deleted file mode 100755
index ab52473..0000000
--- a/pluginchooser/src/ofxAChaosLib/src/AChaosClifford.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- 32/64 bits A-Chaos Lib in openFrameworks
- (c) s373.net/x 2004, 2012, 2015
- http://s373.net/code/A-Chaos-Lib/A-Chaos.html
- programmed by Andre Sier, revised 2015
- License: MIT
-*/
-#pragma once
-#include "AChaosBase.h"
-
-#define clif_calc(a,b,c,d) (SIN((a)*(b))+(c)*COS((a)*(d)))
-
-class AChaosClifford : public AChaosBase {
-public:
-
- REAL a, b, c, d, nx, ny;
-
- AChaosClifford(){}
- ~AChaosClifford(){}
-
- vector<string> param_labels={"a","b","c","d","",""};
- virtual vector<string> &get_param_labels(){return this->param_labels;};
-
- virtual void setup(REAL * params = NULL){
-
- ofLog()<<"inherited setup for Baker ";
-
- AChaosBase::init(params, 6,2);
- if(params==NULL){
- //init
- a = -1.4f;
- b = 1.6f;
- c = 1.0f;
- d = 0.7f;
- //do not init x and y for more chaotic results
- nx = 0.0f;
- ny = 0.0f;
-
- REAL p[6] = {a,b,c,d,nx,ny};
- set(p);
- } else {
- set(params);
- }
-
- }
-
- void reset(){
- a = iv[0];
- b = iv[1];
- c = iv[2];
- d = iv[3];
- nx = iv[4];
- ny = iv[5];
- }
-
- void calc(){
- // clifford attractor
- // lx1 = sin (a*ny) + c*cos(a*nx);
- // ly1 = sin (b*nx) + d*cos(b*ny);
- nx = clif_calc(a, ny, c, nx);
- ny = clif_calc(b, nx, d, ny);
-
- ov[0] = nx;
- ov[1] = ny;
- }
-}; \ No newline at end of file