logoalt Hacker News

Show HN: Rotating torus in terminal (but with kitty graphics protocol)

16 pointsby deotmanlast Sunday at 6:18 AM3 commentsview on HN

Hi HN,

I'm taking Computer Graphics @ Stanford this summer and wanted to express some very simple concepts I had in mind. That's why I wrote a rotating torus in C. Going from writing a ray-tracer that works in Blender to pure C with no dependencies feels relaxing. Wanted to try Kitty Graphics Protocol on the way, rendering images in terminal felt cool.

Open to comments and suggestions.


Comments

mbeavitttoday at 3:52 PM

Reminded me of this recent post: https://www.reddit.com/r/C_Programming/s/ko1Jv1Qxhw

pekimtoday at 1:57 PM

The torus.c file start with this include directive.

  #include <_time.h>
I'm not sure what that header file is, but commenting it out allowed for a clean compile for me
spwa4today at 2:02 PM

Very cool.

aeve890today at 2:52 PM

[dead]