Skip to content

Instantly share code, notes, and snippets.

@tompng
Last active July 17, 2019 13:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tompng/c2d3db8a6552b82b4366eb8662f7a77f to your computer and use it in GitHub Desktop.
Save tompng/c2d3db8a6552b82b4366eb8662f7a77f to your computer and use it in GitHub Desktop.
雑マウス
#include <stdio.h>
int main(){
int size = 24;
for(int y=0;y<size;printf("\n"),y++){for(int x=0;x<size;x++){
int size = 24;
float a=0.1+(y-1.8*x)/size;
float b=1.2-(x+1.8*y)/size;
float c=b+(a<0?-a:a);
float d=(b+c-1.4);
d=d*d*d*d;d=d*d;
float e=a/((1.2-c)/(1+d)+0.1-b/6);
float f=a/((1.2-c*0.8)/(1+d)+0.15-b/6);
if(e*e*e*e+b*b*b*b<1)printf(" ");
else if(f*f*f*f+b*b*b*b<1.5)printf("BB");
else printf(" ");
}}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment