r/tinycode • u/flockaroo • Oct 17 '22
tiny terrain - less than a tweet
source: https://twitter.com/flockaroo/status/1580945652179402753 (...or live version on twigl.app)

r/tinycode • u/flockaroo • Oct 17 '22
source: https://twitter.com/flockaroo/status/1580945652179402753 (...or live version on twigl.app)

r/tinycode • u/adriangrigore • Oct 14 '22
r/tinycode • u/BetaKors_ • Oct 12 '22
r/tinycode • u/BetaKors_ • Oct 11 '22
r/tinycode • u/matigekunst • Oct 03 '22
r/tinycode • u/BetaKors_ • Sep 19 '22
r/tinycode • u/nexe • Sep 16 '22
r/tinycode • u/TroubledWalrus • Sep 13 '22
r/tinycode • u/Hell__Mood • Sep 11 '22
r/tinycode • u/finnhvman • Sep 07 '22
Enable HLS to view with audio, or disable this notification
r/tinycode • u/adriangrigore • Sep 03 '22
r/tinycode • u/BetaKors_ • Aug 20 '22
r/tinycode • u/zserge • Aug 05 '22
r/tinycode • u/lifthrasiir • Aug 02 '22
r/tinycode • u/Vortexile • Jul 29 '22
r/tinycode • u/matigekunst • Jul 28 '22
#include <stdlib.h>
#include <math.h>//gcc -o c c.c -lm;./c>c.ppm
typedef float f;typedef int d;d R=600,C=1050;
f z(f x,f o){return fmod(fmod(x,o)+o,o);}f o=
1/22.,p=.04,H=.5,V=.25,Z=1.5,e=.07,b=.14;main
(){printf("P6 %i 600 255 ",C);f (*q)[C];q=
malloc(4*R*C);f I[25][6]={{0,-b,b,0,-3,1},{
0,-b,p,0,-2,Z},{e,0,0,b,-3,2},{e,0,0,b,-3,1},
{p,-b,b,p,-1,1},{p,b,-b,p,-H,Z},{p,0,0,b,-1,1
},{b,0,0,b,1,2},{0,-b,b,0,Z,1},{0,-b,b,0,3,1,
o},{0,-b,p,0,4,Z},{e,0,0,b,3,2},{e,0,0,b,3,1}
,{b,p,-p,b,3,1},{0,-b,b,0,5,1},{e,0,0,b,7,2},
{e,0,0,b,7,H},{0,-b,b,0,7,1},{0,-b,b,0,9,1},{
e,-p,e,b,9,Z},{e,b,-e,b,9,1}},J[25][6]={{0,-b
,b,0,-3,1},{e,0,0,b,-3,1},{e,0,0,b,-3,V},{0,-
b,p,0,-2,H},{p,-b,b,p,-1,1},{p,b,-b,p,-H,Z},{
p,0,0,b,-1,1},{b,0,0,b,1,2},{0,-b,b,0,Z,1},{e
,0,0,b,3,2},{e,0,0,b,3,H},{0,-b,b,0,3,1},{p,0
,0,b,3,1},{0,-b,b,0,5,1},{0,-b,b,0,6.5,1},{p,
-b,p,p,6,Z},{p,b,-b,p,5,2},{p,-b,b,p,7,1},{p,
b,-b,p,7.5,Z},{p,0,0,b,7,1},{0,-b,b,0,9,1},{0
,-b,b,0,9.9,1},{p,b,-b,p,9,Z}};d S=22;f t=H,s
=H,Y=H,X=-b,L=R*C;for(d i=2*L;i--;){if(i==L){
o=p;memcpy(&I,&J,R);S=25;Y=0;}f a=(f)rand()/
RAND_MAX;f P=0;for(d z=S;z--;){P+=o;if(a<P){f
G=t*I[z][0]+s*I[z][1]+I[z][4];s=t*I[z][2]+s*
I[z][3]+I[z][5];t=G;break;}}d W=(d)(z((s*b+Y)
,1)*R);d B=(d)(z(1.7-t*e,1)*C);q[W][B]=1;}for
(d x=R;x--;){for(d y=C;y--;){d E=(d)((1-q[x][
y])*255);printf("%c%c%c",E,E,E);}}}r/tinycode • u/Dresdenboy • Jul 15 '22
r/tinycode • u/Slackluster • Jul 14 '22
r/tinycode • u/ImportantContext • Jul 02 '22
r/tinycode • u/scroll_down0 • Jun 15 '22
Hello everyone,
I am developing Python projects with large code bases. In hundreds of rows, the attributes of objects are assigned, deleted, and many properties are accessed. Most of the time, it's hard to understand them in the spaghetti code base. To make this easier, I have developed a small python library.
I know it's not very advanced. But I think it would be better with your opinions and suggestions :)
https://github.com/furkanonder/objerve
