Hello my dear coders,
You know how much I like spinning shapes. In this video, I tried to visualize a fancy cube with ASCII chars. Thumbs up!
Twitter: https://twitter.com/gulnaroglus
Source code : https://github.com/servetgulnaroglu/cube.c
Live a star on github, if you enjoy!
All the products in this video
⌨️ Keyboard: IQUnix OG80 Wormhole TTC ACE switches and Costar Stabilizers (5% discount)
https://iqunix.store/servetgulnaroglu
️ Microsoft Bluetooth Mouse
https://amzn.to/3R4904L
️ Monitor Asus MX239:
https://amzn.to/3dulF3k
️ Monitor Dell 34 Curved Monitor – S3422DW:
https://amzn.to/3BEgmGw
2021 Apple MacBook Pro (14″, Chip Apple M1 Pro con CPU 10-core e GPU 16‑core, 16GB RAM, 1TB SSD)
https://amzn.to/3DHAKJn
Rode NTG4+ Shotgun Microphone
https://amzn.to/3LxXcGS
🪵 IOTXY Solid Wood Writing Desk
https://amzn.to/3qWOQiB
🪑 IWMH Ergonomic Office Chair
https://amzn.to/3DMPM0l
00:00 Creating cube.c
00:20 Searching for rotation matrices
00:39 Calculating rotated coordinates
02:04 Getting the result matrix and calculateX()
03:49 calculateY()
04:47 calculateZ()
06:05 Creating variables
06:54 Coding
08:49 calculateForSurface()
12:24 Printing chars on the screen
13:14 The first run
14:11 Creating other surfaces by rotating the first surface
15:34 The second run
19:39 Completed
Source