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