xxxxxxxxxx
/*@pjs preload="star_six.png,star_twe.png,star_black.png";*/
PImage img;
int a = 20;
size(400,400);
background(127);
//////////////縦線グラデ
for (int x=0; x<200; x+=5){
stroke(x);
line(x,0,x,height);}
for (int x=200; x<400; x+=5){
stroke(400-x);
line(x,0,x,height);}
////////////横線グラデ
for (int y=0; y<200; y+=5){
stroke(y);
line(0,y,width,y);}
for (int y=200; y<400; y+=5){
stroke(400-y);
line(0,y,width,y);}
////////////枠線
rectMode(CENTER);
strokeWeight(3);
stroke(0);
fill(127);
rect(200,200,370,370);
strokeWeight(10);
fill(245);
rect(200,200,350,350);
////////////真ん中縦線グラデ
strokeWeight(2);
for (int x=110; x<200; x+=10){
stroke(x+50);
line(x,100,x,300);}
for (int x=200; x<300; x+=10){
stroke(450-x);
line(x,100,x,300);}
////////////真ん中横線グラデ
for (int y=110; y<200; y+=10){
stroke(y+50);
line(100,y,300,y);}
for (int y=200; y<300; y+=10){
stroke(450-y);
line(100,y,300,y);}
////////////画像
imageMode(CENTER);
img = loadImage("star_six.png");
image(img,200,200,200,200);
img = loadImage("star_twe.png");
image(img,200,200,80,80);
image(img,200,200,40,40);
img = loadImage("star_black.png");
for(int b=100; b<350; b+=50){
image(img,b,50,a,a);
image(img,b,350,a,a);
image(img,50,b,a,a);
image(img,350,b,a,a);}
////////////十字架(大)
stroke(0);
strokeWeight(8);
strokeCap(SQUARE);
//左上
line(50, 50, 100, 100);
line(70, 100, 100, 70);
//左下
line(50, 350, 100, 300);
line(70, 300, 100, 330);
//右上
line(300, 100, 350, 50);
line(300, 70, 330, 100);
//右下
line(300, 300, 350, 350);
line(300, 330, 330, 300);
////////////十字架(小)
stroke(0);
strokeWeight(4);
strokeCap(SQUARE);
for(int c=125; c<=275; c+=50){
line(c,40,c,75);
line(c-10,65,c+10,65);
line(c,325,c,360);
line(c-10,335,c+10,335);
line(40,c,75,c);
line(65,c-10,65,c+10);
line(325,c,360,c);
line(335,c-10,335,c+10);
}