Skip to content

JaumeAlbardaner/churro.c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

churro.c

This project comes inspired by Andy Sloane's Donut.c project, which can be found in his website: https://www.a1k0n.net/2006/09/15/obfuscated-c-donut.html .

I had previously worked on generating visual output from code, by coding shaders in GLSL. However, I was curious to know how this famous code snippet worked.

In order to learn how it works, I tried to replicate it by changing the object to render. I chose a Spanish churro for that purpose. However, since that object has much more detail than a doughnut, I had to project the output of the code onto a window with more resolution than a terminal.

For this purpose I relied on Processing, a very simple tool for a project that I didn't want to spend too much time on.

For more information on the making-of of this project, check out my website: https://jaumealbardaner.github.io/pages/portfolio/Churro.html

Files:

Doughnut (Inspiration)

  • donut.c : Original code in C of the spinning dougnut.
  • donut.cpp : Implementation in C++ of the spinning doughnut.
  • donut/donut.pde : Implementation in Processing of the spinning doughnut.

Churro

  • Churro.mlx : Some Matlab code I used to make some math
  • churro/churro.pde : Implementation in Processing of the spinning Churro.

About

Modification of donut.c to make a spanish churro

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published