Automating Images (AI) redux

It is much easier to have the program, write the program, do the math, build the script, change its status, run the script, evaluate the result and continue until it has a reasonable facsimile of something I ask it to create, either with words, by visual example, or with a model vector, vertex, texture, script.


int BuildShellScript(sourceStructure *SourceStructure){ int i=9; /* FILE *shellfp; char shellscriptName[64]; int shellStatus; convert -depth 8 -size 256x256 xc:white -fill white -stroke red \ -bordercolor black -border 14x14 \ -draw "\ fill green circle 80,70 80,90 \ fill green circle 188,70 188,90 \ fill green circle 80,180 80,199 \ fill green circle 188,180 188,199 \ "\ large2-D4.png convert -fuzz 75% -transparent "#ffffff" \ -depth 8 -resize 256x256 large2-D4.png large2-D4.png */ strcpy(SourceStructure->shellscriptName,"makedice.sh\0"); SourceStructure->shellfp=fopen(SourceStructure->shellscriptName,"wb"); sprintf(SourceStructure->shellscriptLine, "convert -depth 8 -size 256x256 xc:white -fill white -stroke green \\\n"); fwrite(&SourceStructure->shellscriptLine,1,strlen(SourceStructure->shellscriptLine),SourceStructure->shellfp); sprintf(SourceStructure->shellscriptLine, " -draw \"\\\n"); fwrite(&SourceStructure->shellscriptLine,1,strlen(SourceStructure->shellscriptLine),SourceStructure->shellfp); sprintf(SourceStructure->shellscriptLine, " fill white circle 80,70 80,90\\\n"); fwrite(&SourceStructure->shellscriptLine,1,strlen(SourceStructure->shellscriptLine),SourceStructure->shellfp); sprintf(SourceStructure->shellscriptLine, " fill green circle 188,70 188,90 \\\n"); fwrite(&SourceStructure->shellscriptLine,1,strlen(SourceStructure->shellscriptLine),SourceStructure->shellfp); sprintf(SourceStructure->shellscriptLine, " fill blue circle 80,180 80,199 \\\n"); fwrite(&SourceStructure->shellscriptLine,1,strlen(SourceStructure->shellscriptLine),SourceStructure->shellfp); sprintf(SourceStructure->shellscriptLine, " fill red circle 188,180 188,199 \\\n"); fwrite(&SourceStructure->shellscriptLine,1,strlen(SourceStructure->shellscriptLine),SourceStructure->shellfp); sprintf(SourceStructure->shellscriptLine, " \" large2-D%d.png\n",i); fwrite(&SourceStructure->shellscriptLine,1,strlen(SourceStructure->shellscriptLine),SourceStructure->shellfp); SourceStructure->shellStatus=fclose(SourceStructure->shellfp); sprintf(SourceStructure->shellscriptLine,"chmod +x %s\n",SourceStructure->shellscriptName); system(SourceStructure->shellscriptLine); sprintf(SourceStructure->shellscriptLine,"./%s\n",SourceStructure->shellscriptName); system(SourceStructure->shellscriptLine); return SourceStructure->shellStatus; }

0 comments:

Contributors

Automated Intelligence

Automated Intelligence
Auftrag der unendlichen LOL katzen