Last active
July 17, 2019 13:21
-
-
Save tompng/c2d3db8a6552b82b4366eb8662f7a77f to your computer and use it in GitHub Desktop.
雑マウス
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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