This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int radius = 200; | |
float lastX = 0; | |
float lastY = 0; | |
void setup(){ | |
size(600, 600); | |
noLoop(); | |
noSmooth(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float x; | |
float y; | |
float a = 0; | |
float f = 0.2; | |
void setup() { | |
size(400, 400); | |
stroke(255, 255, 255); | |
strokeWeight(2); | |
background(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float x; | |
float y; | |
void setup() { | |
size(400, 400); | |
noLoop(); | |
stroke(255, 255, 0); | |
} | |
void draw() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float spacer = 60; | |
void setup(){ | |
size(640, 640); | |
noLoop(); | |
stroke(0, 30); | |
} | |
void draw(){ | |
background(220); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float spacer = 17; | |
void setup(){ | |
size(640, 640); | |
noLoop(); | |
stroke(30, 80); | |
} | |
void draw(){ | |
background(220); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float spacer = 20; | |
void setup(){ | |
size(640, 640); | |
noLoop(); | |
stroke(30, 80); | |
} | |
void draw(){ | |
background(220); |