Coding Challenge #76: 10PRINT in p5.js

preview_player
Показать описание

🤖🤖🤖
10 PRINT CHR$(205.5+RND(1)); : GOTO 10
Fun Fact: The C64 character set is called PETSCII, from the prior Commodore Pet. It’s interesting because unlike ASCII, it’s full of graphics!

References:

Live Stream Archive:

Related Coding Challenges:

Timestamps:
0:00 What is 10Print?
2:56 How do you draw a forward/backward slash?
3:31 Applying probability
5:00 Implementing spacing and finishing touches
5:38 Inventing your own 10Print design
6:56 Generating a design with "rules"
7:26 More things you can do
8:12 Important correction!
8:39 Goodbye!

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

#generativeart #javascript #p5js
Рекомендации по теме
Комментарии
Автор

Every time someone tells me they want to start learning to code, I point them to this channel. You're doing a great job and your enthusiasm really helps people I know get excited about coding

Splatball
Автор

Please continue doing this type of small

ganeshtechchannel
Автор

The challenge on a C64 wasn't so much to make something happen on the screen, it was to do it *efficiently* ! With a computer that runs 4000 times slower and 1/1000th the available memory (at least) a program creator had to understand how the system actually worked and utilize the systems "quirks" to do this. The elegance of the C64 one liner is in the fact that the command RND(x) generates decimal numbers between zero and 0.999...9. (the "x" in the parenthesis only directs the C64 where to get the seed to generate this number - there are 4 different methods to generate random numbers on a C64) Also by using a decimal number to identify a text character that is supposed to be an integer, and understanding that the OS automatically converts the number to an integer by ignoring the decimal value, eliminates the need to use time consuming comparison (IF ... THEN) constructs.

My only point is that many coders today know what can be done in the language they are using, but do not understand how the computer they are programming actually performs the task. I think this is responsible for more "unsolvable bugs" and program "bloat" than anything else. It's nothing new - not everyone that programmed the C64 understood what the system was actually doing with their instructions, and usually ended up with long, slow to execute programs that only miraculously did not crash the system.

DPDK
Автор

I love watching your coding challenges, they are so different everytime

wmtch
Автор

This is like %100 simpler than I thought it would be.
Thank you so much Dan, you are really awesome.

chanasiegel
Автор

I love your videos. I got a little bit bored of programming from my time-consuming computer science classes that were console output based. Then I found your channel, and you taught me how to visualize my code. This has brought a new aspect to programming. I have followed along in multiple videos of yours. I have also spent some time and added to some of the videos you have created (game of life, wave function collapse, and Fourier series/Fourier transform). I could not be happier to have found your channel. You have essentially taught me javascript and how to visualize my code. Please keep making videos!! In the couple of weeks I have been watching your videos, I am confident to put you in a category with 3blue1Brown, Vsause, Smarter Every Day, GreatScott!; a class of channels that have rekindled my love for learning about complex topics.

coledustin
Автор

That's so amazing that such a simple algorithm can create this! 👍

imaginative-monkey
Автор

Wow I used to make random patterns like this in BASIC as a kid... I had no idea people wrote an entire book about what that was like. Added to book queue.

lvlpopcap
Автор

Everytime you amaze me with your energy. And I learn something. And how beautiful this Basic Code was.

markus_knoedel
Автор

Your videos temporarily cure my depression.

deleted_handle
Автор

This video was made in 2017 yet it still helped me do my programming task in 2020 :)

Eric-vlct
Автор

Great example of the biggest asset of this. channel.
I was thinking in forward and back slashes. The use of line shows a very 'basic' way of creative thinking.
Thats what I like the most.

papinkelman
Автор

It has to be said. You are the Bob Ross AND Fred Rogers of coding. Your enthusiasm is infectious. Your love for teaching is endless . You make this world a better place. Thank you for everything.

MrTalkingzero
Автор

I really love this kind of generative design! So simple, so clean...

Mezklador
Автор

that's funny, I literally had "make a 10 print program in p5.js" on my todo list and I see that somebody else had the same idea before me :-) that made me subscribe to your channel right away

AmeeliaK
Автор

i really enjoyed this video, one of my favorites for sure. Thanks !

terraflops
Автор

I made the background 51 and the stroke 20 and set the sketch as my wallpaper. Best wallpaper ever....😍

kavinbharathi
Автор

The draw function needs a conditional that stops when y > canvas height, otherwise it keeps drawing off screen.

freedomowologba
Автор

Oh I am gonna try this! Thanks! Great video!

redlinechaser
Автор

I once got up to go to the bathroom. When I came back somebody had typed:

10 PRINT "Kevin is a loser!"
20 GOTO 10

My brother was quietly sitting on the bed reading a book.

kevnar