Skip to content

Instantly share code, notes, and snippets.

View fiskurgit's full-sized avatar
🌑
...

öppenteknikstudio fiskurgit

🌑
...
View GitHub Profile
int step = 0;
int segmentCount = 70;
int startStep = 0;//offset the start position, not necessary but more interesting while drawing.
float pointDiameter = 0.25;
float plotRadius = 5;
float radiusIncrement = 6;
void setup(){
size(500, 500);
background(255);
int radius = 200;
float lastX = 0;
float lastY = 0;
void setup(){
size(600, 600);
noLoop();
noSmooth();
}
float x;
float y;
float a = 0;
float f = 0.2;
void setup() {
size(400, 400);
stroke(255, 255, 255);
strokeWeight(2);
background(0);
float x;
float y;
void setup() {
size(400, 400);
noLoop();
stroke(255, 255, 0);
}
void draw() {
/*
10 REM Display of SIN(X)/X
20 MODE4
25 VDU19,0,4;0;19,1,3;0;
30 point=69
40 VDU29,640;200; :REM Set origin
50 FOR X=-640.1 TO 640 STEP 2
60 PLOTpoint,X,800*32*SIN(X/32)/X
70 NEXT X
80 END
/*
200 REM L2-XYZ2
240 REM
250 REM dimension arrays
260 DIM £X(60),£Y(60),£Z(60)
270 REM
280 REM calculate data
290 N=60: dt=2*PI/N
300 FOR I=0 TO N
310 t=I*dt: r=4+COS(8*t)
/*
500 REM L2-XYX2
520 REM
530 REM --- simple x,y plot ---
540 REM first DIM £X,£Y & set values
550 DIM £X(40),£Y(40)
560 N%=40
570 FOR I%=0 TO N%: th=I%*PI/N%
580 r = SIN(5*th)
590 £X(I%)= r *COS(th)
float spacer = 60;
void setup(){
size(640, 640);
noLoop();
stroke(0, 30);
}
void draw(){
background(220);
@fiskurgit
fiskurgit / ThreeDoubleGridsFuzzyWeight.pde
Created May 3, 2016 10:56
3 Double Grids 0°, 30°, 60° by Francois Morellet rendered by processing.
float spacer = 17;
void setup(){
size(640, 640);
noLoop();
stroke(30, 80);
}
void draw(){
background(220);
@fiskurgit
fiskurgit / ThreeDoubleGridsFuzzy.pde
Created May 3, 2016 10:33
3 Double Grids 0°, 30°, 60° by Francois Morellet rendered by processing.
float spacer = 20;
void setup(){
size(640, 640);
noLoop();
stroke(30, 80);
}
void draw(){
background(220);