processing求大神指点

[复制链接]
查看11 | 回复1 | 2021-1-27 05:32:24 | 显示全部楼层 |阅读模式
网上下载了代码但是总是出错自己实在找不出问题了,每次该每次有新问题。。求教啊

PFontfont;
String[]words={"gratitude","celebrated","whichisobservedasColumbus","common","friends","public","PeoplesDayintheUnitedStates","Indigenous","expressionof","familyholiday","hanksgivingistraditionally","theUnitedStates","common"};
PGraphics[]wordPic=newPGraphics[words.length];
PImagepic;
inttotal=180;
PGraphicsmanyC,finalSave;
voidsetup(){
size(800,800);
pic=loadImage("pali.jpg");
pic.filter(THRESHOLD,0.9);
pic.resize(800,0);
font=createFont("BRITANIC.TTF",40);
textFont(font);
floatstrHt=textAscent()+textDescent();
println(strHt);
//size(pic.width,pic.height);
background(255);
manyC=createGraphics(pic.width,pic.height);
finalSave=createGraphics(pic.width,pic.height);
finalSave.smooth();
for(inti=0;i=width){
wordPic.resize(width*2/3,0);
}
}
for(inti=0;i10){
inttryTimes=150;
floatshrinkFactor=0.7;
for(intj=0;j[tr] -->
回复

使用道具 举报

千问 | 2021-1-27 05:32:24 | 显示全部楼层
c/c++有专门的版块吧;而且最好是能放出来完整的可以让别人生成最终执行代码的内容来,否则这么长的东西,干看,看出来问题来有些难;通过可执行程序的运行的问题表现,更容易判别问题可能所在。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行