From 66dcf910bd4744d8ced56cb9586aa937a1a2d4c5 Mon Sep 17 00:00:00 2001 From: vg Date: Tue, 7 Jul 2020 16:24:01 +0200 Subject: first commit --- instructables/cube_pc/3d.c | 344 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 344 insertions(+) create mode 100644 instructables/cube_pc/3d.c (limited to 'instructables/cube_pc/3d.c') diff --git a/instructables/cube_pc/3d.c b/instructables/cube_pc/3d.c new file mode 100644 index 0000000..e1ddeaf --- /dev/null +++ b/instructables/cube_pc/3d.c @@ -0,0 +1,344 @@ +#include "draw.h" +#include "draw_3d.h" +#include "3d.h" +#include +#include +#include +#include +#include + +void linespin (int iterations, int delay) +{ + float top_x, top_y, top_z, bot_x, bot_y, bot_z, sin_base; + float center_x, center_y; + + center_x = 4; + center_y = 4; + + int i, z; + for (i=0;idiameter && distance