I've been recreating this in every language I've learned since the early 90s when I first played it with an actual marker and six-sided die. Including a Windows 95/98 screensaver written in VB3 (that's not a joke). Great video!
@@UnitSe7enNot quite. The coincidence I was referring is not the UA-cam recommending me this video, but the fact that Dan Shiffman made a video on the subject just some days after I watched the Numberphile video.
Something amasing. I tried similar thing in 2d editor, make a some 3x3 rule box (black point - set rule, white point - not set), and rule was to place rule box into bigger cell (by step equal of width/height of rule box). in case of rule box is black and central point is white - we have a Menger sponge. In case of diagonal white dots - we have a slightly tilted Koch snowflake. So on.
OOH man! this program is so excitement, thank you for doing this, I remember program this sierpinsky triangle in c++ years ago. Now I will try do this caos in Python! :D Greetings from Mexico!!
It will work for sure. Here a test I did after doing the Sierpinsky triangle, I thought my self what if I move randomly the 3 vertices but also play with the indice of fraction (because the seirpinsky is vertex to vertex divided by 2) here I animated the divided by. Creating an illusion of 3d. ua-cam.com/video/wXilfmrXq9E/v-deo.html
I managed to do 3D Sierpinski triangle by accident while I was trying to make the code able of generating any chaos game depending on the number of dots, the code is in the description (put the slider's value at 4)
I played with the Chaos Game as well, from triangles to 15-gons as starting points, and using different percentages. Just uploaded an animation to my new channel. More variations are coming soon! Please have a look, cheers!
Thank you very much for the highlight! (too bad that I have to figure out how to not loose so much quality after the video upload, but I will improve soon)
hey I've just started using p5 with vs code as my text code editor but I can't seem to get IntelliSense working for the p5 library. I've downloaded the p5 @types using npm but it is not being detected by vs code and intellisense is not working. I've spent hours trying to figure out using google but I haven't found a solution to my problem. Any help would be greatly appreciated.
I've been recreating this in every language I've learned since the early 90s when I first played it with an actual marker and six-sided die. Including a Windows 95/98 screensaver written in VB3 (that's not a joke). Great video!
:0
Immediate edit: a very nicely running gaming channel, I see, Sir.
THIS IS AMAZING!!! I CANNOT BELIEVE HOW PERFECT THIS IS.
your enthusiasm is incredible!
By coincidence I watched the chaos game video on Numberphile a couple days ago and found it pretty interesting.
That's not coincidence - That's UA-cam algos.
@@UnitSe7enNot quite. The coincidence I was referring is not the UA-cam recommending me this video, but the fact that Dan Shiffman made a video on the subject just some days after I watched the Numberphile video.
@@Israel220500 The machinations of the Universe and it's sense of ironic humour.
Video ID *fUsePzlOmxw* for some more chaos goodness.
Something amasing. I tried similar thing in 2d editor, make a some 3x3 rule box (black point - set rule, white point - not set), and rule was to place rule box into bigger cell (by step equal of width/height of rule box). in case of rule box is black and central point is white - we have a Menger sponge. In case of diagonal white dots - we have a slightly tilted Koch snowflake. So on.
One day I'll be capable enough to code like you do, kind sir
10:25 Trifor- oh, yeah, right, Serpinski Triangle...
OOH man! this program is so excitement, thank you for doing this, I remember program this sierpinsky triangle in c++ years ago. Now I will try do this caos in Python! :D Greetings from Mexico!!
Looool i'v already done this by myself in python last year😂
You are the beeest😘
Thank you for this tutorial, Alan.
...is that your name or-
The name of the person teaching here is "Professor Daniel Shiffman" from the ITP, NYU.
That wos realy nice. Waiting for more!!
What if you did the same thing but in 3d space
i think its much more complex to let the points randomly move around on a 3 dimension.
@@felixbrumm9699 It may be, but It would be really interesting to see what would happen.
An0nSaiKo working on it now using unity
It will work for sure. Here a test I did after doing the Sierpinsky triangle, I thought my self what if I move randomly the 3 vertices but also play with the indice of fraction (because the seirpinsky is vertex to vertex divided by 2) here I animated the divided by. Creating an illusion of 3d. ua-cam.com/video/wXilfmrXq9E/v-deo.html
Try doing the same thing with 4 starting points ;)
Coding is fun
Really enjoy your video, man...though I don't understand anything of your programming😁
You can start here! ua-cam.com/users/shiffmanplaylists?view=50&shelf_id=2&sort=dd
"numberfIIIle video" nice vid
Could you please make a video about test driven development and robustness. It's a really great way to make a program to work!
Make a video just changing the parameters or adding lines or something, coding it's awesome.
Tic-tac-toe minimax!
good video
4:01 thank me later
Sorry to hear about your new X.
hahahaahahahaahaha that songggg !!! made me laugh !!! love your channel
Hello! I really like computers and someday I want to learn Java too!
Dan is now being careful to not pronounce the variables 'cx' =P
I managed to do 3D Sierpinski triangle by accident while I was trying to make the code able of generating any chaos game depending on the number of dots, the code is in the description (put the slider's value at 4)
let pointsArray = [];
let pointsLength = 3;
let x, y;
let slider;
function setup() {
colorMode(HSB);
createCanvas(windowWidth, windowHeight);
slider = createSlider(0, 20, 3, 1);
background(0);
angleMode(RADIANS);
strokeWeight(8);
stroke(255);
for(var i = 0; i < pointsLength; i++){
pointsArray.push(createVector((cos(PI / pointsLength * i * 2) + 1) * (width / 2), (sin(PI / pointsLength * i * 2 ) + 1) * (height / 2)));
point(pointsArray[i].x, pointsArray[i].y);
}
x = random(width);
y = random(height);
}
function draw() {
if(pointsLength != slider.value()){
pointsLength = slider.value();
pointsArray.splice(0, pointsArray.length-1);
print(pointsLength);
background(0);
strokeWeight(8);
stroke(255);
for(var i = 0; i < pointsLength; i++){
pointsArray.push(createVector((cos(PI / pointsLength * i * 2) + 1) * (width / 2), (sin(PI / pointsLength * i * 2 ) + 1) * (height / 2)));
point(pointsArray[i].x, pointsArray[i].y);
}
x = random(width);
y = random(height);
}
for(let a = 0; a < 100; a++){
strokeWeight();
let r = floor(random(pointsLength + 1));
for(let i = 0; i < pointsLength; i++) {
point(x, y);
if(r == i){
stroke(255 / (pointsLength - 1) * i, 255, 255);
x = lerp(x, pointsArray[i].x, 0.5);
y = lerp(y, pointsArray[i].y, 0.5);
}
}
}
}
This is crazy
OMG the like to dislike ratio is more than 220 to 1 well done !!!!!!!!!!!!
We would like to see one playlist on solving real world problems with #dataStructures (basic to expert :p ).
Greetings from the legend of zelda.
I call that the infinite triforce.
Hey, would you like to share your secret.from where you fine these challenges? I also wanna solve some without watching video pls
People suggest them here! github.com/CodingTrain/Rainbow-Topics/issues
I did this in python's turtle module when I was 14
Coding the Triforce, Zelda fans would say.
nice triforce
If you have a low calorie diet you will be thin and hyperactive and also live a long time. This is why I think Dan will live to 100 years old.
I played with the Chaos Game as well, from triangles to 15-gons as starting points, and using different percentages.
Just uploaded an animation to my new channel. More variations are coming soon!
Please have a look, cheers!
Thank you very much for the highlight!
(too bad that I have to figure out how to not loose so much quality after the video upload, but I will improve soon)
godamn LERP, i wanted to see the actual math... basically the reason i looked it up :c
well lerp(a,b,t) is really just (b*t) + (a*(1-t)) -- so pretty basic math
I'm going to make an octagonal chaosgame
IT DID NOTHING😭😭
Check out part 2!
function setup() {
for (let n = 70000, _ = (createCanvas(800, 800), stroke(220), background(20)), p, col, points = [Object.defineProperty(createVector(width * 0.5, 0), 'color', { value: color(255, 0, 255) }), Object.defineProperty(createVector(0, height), 'color', { value: color(0, 255, 255) }), Object.defineProperty(createVector(width, height), 'color', { value: color(255, 255, 0) })], currentPoint = random(points).copy(), i = n; i--; currentPoint.lerp(p = random(points), 0.5), stroke(p.color)) point(currentPoint.x, currentPoint.y)
}
can u teach python code like that
X, Y. What about Z?
is 2d no 3d
@@ArneiroS I mean, I wonder how it will function in three-dimensional space.
hey I've just started using p5 with vs code as my text code editor but I can't seem to get IntelliSense working for the p5 library. I've downloaded the p5 @types using npm but it is not being detected by vs code and intellisense is not working. I've spent hours trying to figure out using google but I haven't found a solution to my problem. Any help would be greatly appreciated.
Do my workflow videos help? ua-cam.com/play/PLRqwX-V7Uu6Zu_uqEA6NqhLzKLACwU74X.html)
whats the name of the book with the numbers? :D
Here you go! amzn.to/2Q2i4MM
Yo im so suck i cant even understand this
for once i did something faster than u. man do i love this Chanel. ps used python
If you used processing.py could you share it with me?
@@Metabyte149 nah man i actually used spyder with the turtle module
Can I do the coding challenge without all that cocaine?
Next one is already out (unlisted): ua-cam.com/video/A0NHGTggoOQ/v-deo.html
I did a version of this where there is 3 input boxes and we can modify the number of points, leap amount and fps
github.com/DeathOfTime8/Chaos-Game
Nice work! You can submit a link to the coding train website if you like!
github.com/CodingTrain/website/wiki/Community-Contributions-Guide
This is the weirdest shit i have seem in a while
програмісти отруюють
Only 9 dislikes
Second
First
Second?