I try to learn Python , this is my try to solve Wikipedia's sudoku . www.dropbox.com/s/p98uc0avz4i8bb9/sudoku%20copy.py?dl=0 Comments are on Greek . You are free to use it. Thank you. *it is writen in Python 2 **simple.wikipedia.org/wiki/Sudoku And i found this on youtube , my programm can not solve this... ua-cam.com/video/hAyZ9K2EBF0/v-deo.html
Merry Christmas everybody!!! And please donate to P5. #supportP5 Edit:- i cannot donate coz my region doesn't qualify for that. But everybody who can please do.
The thickness should be decided by the distance from the origin as well as the distance from the axis of symmetry. Also, straight line from mouse press until the mouse stops moving
Hi, I am new to coding, and your videos are very helpful. I have a question, I am trying to move an object with the arrow keys, so I looked up how, and for some reason, it just doesn't move, any idea why?
I have a question, how can something like this, turn to be a website or something that runs whn there is an internet? Like some sort of a graphing website or something
Hi, I have a short question about p5.js. I have written a few programs so far in the web editor (in Safari), and I really like it. I’ve tried to implement BubbleSort, but I don’t know where it goes wrong. Basically, it is structured like this: let list = []; for(var i = 0; i < 10; i++){ list.push(i); } function swap(arr, a, b){ if (max(a, b) >= arr.length || min(a, b) < 0){ console.log('OutOfBoundsSwap'); }//err handle let x = arr[a]; arr[a] = arr[b]; arr[b] = x; }//performs swaps function setup() { createCanvas(400, 400); shuffle(list, true); console.log(list); bubblesort(list); console.log(list); } function draw() { background(220); } Bubblesort has its own file (I plan to implement more algorithms). That one looks like this: function bubblesort(arr){ for(let i = 0; i < arr.length; i++){ for(let j = 0; j < arr.length - 1; j++){ if (arr[j] > arr[j + 1]){ swap(arr, j, j + 1); } } } } What I don’t understand is that both console.logs output a sorted list. And if I comment out the bubblesort(list), both output an unsorted list. Why doesn’t the first one in the original function output the unsorted list? I’ve searched for ‘p5js going back in time’ but I don’t really know what to search for. Does anybody know why this happens or how to fix it?
I know this is unrelated, but can you help me make delays between images? I'm trying to use delays like this: image(talking,430,300,320,200); image(ntalking,430,300,320,200); delay(10); But its not working. Please help me, thanks
Donate! donorbox.org/supportpf2019-fundraising-campaign
Thanks for the knowledge
sir , Please teach us js
Amiya Lahiri
Sir , you can learn it from literally anywhere
excellent explanation! Thanks!
Who ever reads this, have a great christmas and a great new year!
ok
And you too...
paraglide01, thanks!
You too dude
Arnav Rajesh, thanks!
Thickness based on distance from center plus some noise value makes sense in real snowflake design.
you're an amazing person and I loved these creative and cool looking stuff with so little code!
Ur great to watch. Every energetic and positive
#CodingChallenge
Coding challenge: Make a sudoku solver
Yes, that would be great, also if you created a interp for a programming language you made up in js! So much fun!
if you find an algorithm who can solve sudoku, i pretty sure that you have resolved P = NP problem and won the 1 000 000 $ promised to the solver
I made one with recursive backtracking... for some reason...
I try to learn Python , this is my try to solve Wikipedia's sudoku .
www.dropbox.com/s/p98uc0avz4i8bb9/sudoku%20copy.py?dl=0
Comments are on Greek .
You are free to use it. Thank you.
*it is writen in Python 2
**simple.wikipedia.org/wiki/Sudoku
And i found this on youtube , my programm can not solve this...
ua-cam.com/video/hAyZ9K2EBF0/v-deo.html
@@mcmisterhd1920 oh shit i thought it was an np problem thanks for clarifying this
Merry Christmas everybody!!! And please donate to P5. #supportP5
Edit:- i cannot donate coz my region doesn't qualify for that. But everybody who can please do.
To everyone who can't donate in their country, that's only true on UA-cam. You can still donate here: donorbox.org/supportpf2019-fundraising-campaign
Thank you Simon!
@@SimonTiger Thanks for the information.
This is a really fun kaleidoscope program / Coding Challenge. Thank you.
Love the song in the end 😂🎄
The thickness should be decided by the distance from the origin as well as the distance from the axis of symmetry. Also, straight line from mouse press until the mouse stops moving
how could you code it to make the thickness decided by distance from origin?
absolute legend. this guy
Great! I would use voice input as thickness control. :)
Guys if you can't donate you can still help by telling other people about it and spreading the word🙂
omg finally a snowflake!!! i've been waiting for someone who can do that's not the Koch's style :D
awesome work Dan!
Merry Christmas and I hope Processing reaches its goal
in 11:40 couldn't you use push() and pop()?
EDIT: You added those at 16:05
Mega Deluxe Paint nostalgiaaaaaa...
Always awesome....... power of looping...
Can you teach us to make qr code scanner in p5.js.
Your videos are great.
Awesome video as always! I especially love these more artsy videos (filling the void in me where artistic skill is supposed to be)
Merry Christmas Daniel! It'll be nicer if the snowflakes were generated automatically!
Do Atari breakout for your next coding challenge
Thanks for the video, dude!
how could i turn this into randomly generated kaleidoscopes? so that if i run it it will generate it randomly each time
i watched the 4 hour stream just last night. and i’m really tempted to watch this video, which is literally the same thing as the stream, 😂
Umm... thanks Dan! i was figuring out how to make the thing that you made by accident at 3:00 thanks
Lol why do you need it
Hi, I am new to coding, and your videos are very helpful. I have a question, I am trying to move an object with the arrow keys, so I looked up how, and for some reason, it just doesn't move, any idea why?
Just perfect
"Five gold...argh!" The second time you did it wrong also!
interesting challenge!
Merry Christmas Coding Train ....
🎅🏻
I have a question, how can something like this, turn to be a website or something that runs whn there is an internet? Like some sort of a graphing website or something
? p5.js runs online.
#CodingChallenge
Coding challenge :- madeinhaus.com/
Background animation 😅
Is there any way you can do one on writing a Kaleidoscope webam??
Do you think p5 would be good in schools
Of course. Anything made for experimentation is also excellent for education.
Thank you for reposting this
could u explain why i % 2==1 make it symmetrical? I’m lost here
Could you do an electronics circuit simulator?
I am not a pro but can you use the scrole wheel to change the stroke
I love you so muchhhhhh my saviour
Hi, I have a short question about p5.js.
I have written a few programs so far in the web editor (in Safari), and I really like it.
I’ve tried to implement BubbleSort, but I don’t know where it goes wrong.
Basically, it is structured like this:
let list = [];
for(var i = 0; i < 10; i++){
list.push(i);
}
function swap(arr, a, b){
if (max(a, b) >= arr.length ||
min(a, b) < 0){
console.log('OutOfBoundsSwap');
}//err handle
let x = arr[a];
arr[a] = arr[b];
arr[b] = x;
}//performs swaps
function setup() {
createCanvas(400, 400);
shuffle(list, true);
console.log(list);
bubblesort(list);
console.log(list);
}
function draw() {
background(220);
}
Bubblesort has its own file (I plan to implement more algorithms). That one looks like this:
function bubblesort(arr){
for(let i = 0; i < arr.length; i++){
for(let j = 0; j < arr.length - 1; j++){
if (arr[j] > arr[j + 1]){
swap(arr, j, j + 1);
}
}
}
}
What I don’t understand is that both console.logs output a sorted list. And if I comment out the bubblesort(list), both output an unsorted list. Why doesn’t the first one in the original function output the unsorted list? I’ve searched for ‘p5js going back in time’ but I don’t really know what to search for. Does anybody know why this happens or how to fix it?
I know this is unrelated, but can you help me make delays between images? I'm trying to use delays like this:
image(talking,430,300,320,200);
image(ntalking,430,300,320,200);
delay(10);
But its not working.
Please help me, thanks
Awesome video. Can I use this to capture it in a video so I can use it for a video opening? Or is it trademarked?
What is the code editor does Daniel is using? in his past videos
I use VSCode or the p5 web editor these days. More here: ua-cam.com/play/PLRqwX-V7Uu6Zu_uqEA6NqhLzKLACwU74X.html
Dan, how did you make that sweater?
Thanks a lot
For a coding challenge, can you make the brick breaker game please?
love you dad
Cool and easy tnx a lot
maybe try making some ml learning videos with java and processing and eclipse?
Merry Christmas to this.everyone
can you also make a video in which you play on ukulele???)) it would be great)
0:33 Theater mode and mobile users: yeah no
Hi! I'm new to p5 js and I don't know the difference between let and var? Is there any?
Try this video! ua-cam.com/video/q8SHaDQdul0/v-deo.html
You're the best!
Wow bro
GOTH SNOWFLAKE
hey how can i download p5. js in windows 10
Just go to it's official website and download it !
Or you can use it's editor 😊
Great song, I want the tabs on Git :-)
you are the ceo of p5js
?
5:30 Line 11
there is missing a "p"
16:00
angleMode(DEGREES); does not work in Processing
6:57
I wish I had a credit card, processing is super important for me and I'd give you even a few dollars if I could
Arghh in the dist it's pmousey at the end
How to make p5 tutorial.
I can't believe this video got dislikes 🤔
#CodingChallenge
Coding challenge: Nonogram solver
26th! :D
why are alows happy give us secret
@FirstWeCode !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿¿
@FirstWeCode I think he meant to ask why is Dan always happy.
Hi Olympia if ur watching this
#CodingChallenge
Code a snake without P5.js
you insane (;
Looks like Chinese characters at about 7 minutes
до циркулярной грамоты еще далеко. i.pinimg.com/originals/c7/19/51/c7195125d6a5ada85a8be0eb68f1fdd3.gif